vue/build/webpack.dev.config.js
2015-11-18 15:01:05 -05:00

28 lines
443 B
JavaScript

var webpack = require('webpack')
module.exports = {
entry: './src/index',
output: {
path: './dist',
filename: 'vue.js',
library: 'Vue',
libraryTarget: 'umd'
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel' }
]
},
babel: {
loose: 'all'
},
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"development"'
}
})
],
devtool: '#source-map'
}