Fix lodash will be ignored by webpack in pack bundle
This commit is contained in:
parent
ca71028dd7
commit
f715e8e5a3
1 changed files with 1 additions and 2 deletions
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue