update the master branch to the latest
This commit is contained in:
parent
67d534df27
commit
23a0ba9831
611 changed files with 122648 additions and 0 deletions
24
build/webpack.test.config.js
Normal file
24
build/webpack.test.config.js
Normal file
|
@ -0,0 +1,24 @@
|
|||
/**
|
||||
* 用于单元测试
|
||||
*/
|
||||
|
||||
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;
|
Loading…
Add table
Add a link
Reference in a new issue