vue/webpack.config.js

17 lines
334 B
JavaScript
Raw Normal View History

2016-04-11 10:47:28 +08:00
var path = require('path')
module.exports = {
entry: path.resolve(__dirname, 'src/index.umd.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'vue.js',
library: 'Vue',
libraryTarget: 'umd'
},
module: {
loaders: [
{ test: /\.js/, loader: 'babel', exclude: /node_modules/ }
]
}
}