0

Hi i am using htmlwebpackextract plugin.here is my config code

new HtmlWebpackExternalsPlugin(
            {
            externals: [
                {
                    module: 'jquery',
                    entry:'https://unpkg.com/jquery@3.2.1/dist/jquery.min.js',
                    global: 'jQuery'
                },
                {
                    module: 'bootstrap',
                    entry: {
                        path: 'https://unpkg.com/bootstrap@4.0.0/dist/css/bootstrap.min.css',
                        type: 'css'
                    },
                    append: true,
                }
            ],
            enabled:isProd,
            }

        )

It gives some error as cannot read property 'var'of null.In index.js require('bootstrap') is there

Pushparaj
  • 1,072
  • 8
  • 29

0 Answers0