summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2017-06-08 00:40:32 +0800
committerWu Cheng-Han2017-06-08 00:40:32 +0800
commitf715e8e5a3958d9bea0ac53c6473fd8b60f7279e (patch)
tree912cb232b88199f586599bf86929c48d09d0abf0
parentca71028dd7ee1111f1d06093de47403dfab93e17 (diff)
Fix lodash will be ignored by webpack in pack bundle
-rw-r--r--webpackBaseConfig.js3
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'