Browse Source
* mv externals from base to dev webpack config * rm unnecessary plugins from base webpack configpull/1/head
2 changed files with 10 additions and 20 deletions
@ -1,4 +1,13 @@ |
|||||||
var base = require('./webpack.base.conf'); |
var base = require('./webpack.base.conf'); |
||||||
|
|
||||||
|
base.externals = [ |
||||||
|
function (context, request, callback) { |
||||||
|
if (request[0] == '.') { |
||||||
|
callback(); |
||||||
|
} else { |
||||||
|
callback(null, "require('" + request + "')"); |
||||||
|
} |
||||||
|
} |
||||||
|
]; |
||||||
base.watch = true; |
base.watch = true; |
||||||
module.exports = base; |
module.exports = base; |
||||||
|
Loading…
Reference in new issue