iview/build/webpack.test.config.js
2018-03-05 13:19:27 +01:00

24 lines
505 B
JavaScript

/**
* 用于单元测试
*/
const webpack = require('webpack');
const merge = require('webpack-merge');
const webpackBaseConfig = require('./webpack.base.config.js');
const webpackConfig = merge(webpackBaseConfig, {
devtool: 'eval-source-map',
plugins: [
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: '"testing"'
}
})
]
});
// no need for app entry during tests
delete webpackConfig.entry;
module.exports = webpackConfig;