diff options
author | Wu Cheng-Han | 2017-06-08 00:40:32 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2017-06-08 00:40:32 +0800 |
commit | f715e8e5a3958d9bea0ac53c6473fd8b60f7279e (patch) | |
tree | 912cb232b88199f586599bf86929c48d09d0abf0 | |
parent | ca71028dd7ee1111f1d06093de47403dfab93e17 (diff) |
Fix lodash will be ignored by webpack in pack bundle
-rw-r--r-- | webpackBaseConfig.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 36a49f25..41a63e7d 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -381,7 +381,6 @@ module.exports = { externals: { 'viz.js': 'Viz', 'socket.io-client': 'io', - 'lodash': '_', 'jquery': '$', 'moment': 'moment', 'handlebars': 'Handlebars', @@ -408,7 +407,7 @@ module.exports = { loader: ExtractTextPlugin.extract('style-loader', 'less-loader') }, { test: require.resolve('js-sequence-diagrams'), - loader: 'imports?Raphael=raphael' + loader: 'imports?_=lodash&Raphael=raphael' }, { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: 'file' |