Commit c6139e03 authored by sorrycc's avatar sorrycc Committed by ι™ˆεΈ…

disable dll and hard-source in test

parent b536754c
...@@ -22,7 +22,7 @@ export default { ...@@ -22,7 +22,7 @@ export default {
}, },
polyfills: ['ie9'], polyfills: ['ie9'],
...( ...(
require('os').platform() === 'darwin' (!process.env.TEST && require('os').platform() === 'darwin')
? { ? {
dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'], dll: ['dva', 'dva/router', 'dva/saga', 'dva/fetch'],
hardSource: true, hardSource: true,
......
...@@ -3,6 +3,7 @@ const { kill } = require('cross-port-killer'); ...@@ -3,6 +3,7 @@ const { kill } = require('cross-port-killer');
const env = Object.create(process.env); const env = Object.create(process.env);
env.BROWSER = 'none'; env.BROWSER = 'none';
env.TEST = true;
const startServer = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['start'], { const startServer = spawn(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', ['start'], {
env, env,
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment