mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 05:27:59 +08:00
36 lines
684 B
JavaScript
36 lines
684 B
JavaScript
var path = require('path')
|
|
var alias = require('./alias')
|
|
var webpack = require('webpack')
|
|
|
|
module.exports = {
|
|
entry: path.resolve(__dirname, 'dist.dev.entry.js'),
|
|
output: {
|
|
path: path.resolve(__dirname, '../dist'),
|
|
filename: 'vue.js',
|
|
library: 'Vue',
|
|
libraryTarget: 'umd'
|
|
},
|
|
resolve: {
|
|
alias: Object.assign({}, alias, {
|
|
entities: './entity-decoder'
|
|
})
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.js/,
|
|
loader: 'babel!eslint',
|
|
exclude: /node_modules/
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: '"development"'
|
|
}
|
|
})
|
|
],
|
|
devtool: '#source-map'
|
|
}
|