Fix lodash will be ignored by webpack in pack bundle

This commit is contained in:
Wu Cheng-Han 2017-06-08 00:40:32 +08:00
parent ca71028dd7
commit f715e8e5a3

View file

@ -381,7 +381,6 @@ module.exports = {
externals: { externals: {
'viz.js': 'Viz', 'viz.js': 'Viz',
'socket.io-client': 'io', 'socket.io-client': 'io',
'lodash': '_',
'jquery': '$', 'jquery': '$',
'moment': 'moment', 'moment': 'moment',
'handlebars': 'Handlebars', 'handlebars': 'Handlebars',
@ -408,7 +407,7 @@ module.exports = {
loader: ExtractTextPlugin.extract('style-loader', 'less-loader') loader: ExtractTextPlugin.extract('style-loader', 'less-loader')
}, { }, {
test: require.resolve('js-sequence-diagrams'), test: require.resolve('js-sequence-diagrams'),
loader: 'imports?Raphael=raphael' loader: 'imports?_=lodash&Raphael=raphael'
}, { }, {
test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, test: /\.eot(\?v=\d+\.\d+\.\d+)?$/,
loader: 'file' loader: 'file'