From f715e8e5a3958d9bea0ac53c6473fd8b60f7279e Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Thu, 8 Jun 2017 00:40:32 +0800 Subject: Fix lodash will be ignored by webpack in pack bundle --- webpackBaseConfig.js | 3 +-- 1 file changed, 1 insertion(+), 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' -- cgit v1.2.3