mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-05 21:47:35 +08:00
29 lines
493 B
JavaScript
29 lines
493 B
JavaScript
var webpack = require('webpack')
|
|
|
|
module.exports = {
|
|
entry: './test/unit/specs/index.js',
|
|
output: {
|
|
path: './test/unit',
|
|
filename: 'specs.js'
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{ test: /\.js$/, loader: 'babel', exclude: /test\/unit/ }
|
|
]
|
|
},
|
|
babel: {
|
|
loose: 'all'
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: '"development"'
|
|
}
|
|
})
|
|
],
|
|
devServer: {
|
|
contentBase: './test/unit'
|
|
},
|
|
devtool: '#source-map'
|
|
}
|