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

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'
}