Closed xueyuchen closed 7 years ago
"Cannot read property 'var' of null" sounds like version 2 of html-webpack-externals-plugin. Can you verify that you are running the latest version, 3.3.5?
To answer your question, no, modules like bootstrap.min.js
do not need a global, as they don't directly export anything (instead they just mutate the global jQuery object).
Were you able to check if you're running the correct version of HtmlWebpackExternalsPlugin?
code:
error: ERROR in chunk test_index_renderer [entry] js/[name].bundle.js Cannot read property 'var' of null Child html-webpack-plugin for "../../../view/front/test_index.html":
question: option.externals[].global: For modules without an export (such as CSS), omit this property or use null, js such as bootstrap.min.js alse need global?