mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 03:57:36 +08:00
28 lines
443 B
JavaScript
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'
|
|
}
|