提交 c6139e03 编写于 作者: S sorrycc 提交者: 陈帅

disable dll and hard-source in test

上级 b536754c
......@@ -22,7 +22,7 @@ export default {
},
polyfills: ['ie9'],
...(
require('os').platform() === 'darwin'
(!process.env.TEST && require('os').platform() === 'darwin')
? {
dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
hardSource: true,
......
......@@ -3,6 +3,7 @@ const { kill } = require('cross-port-killer');
const env = Object.create(process.env);
env.BROWSER = 'none';
env.TEST = true;
const startServer = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['start'], {
env,
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册