mmiller42 / html-webpack-externals-plugin

Webpack plugin that works alongside html-webpack-plugin to use pre-packaged vendor bundles.
MIT License
99 stars 16 forks source link

Ability to specify where the entry should be injected ( <body>, <head>, or others ) #40

Open DrSensor opened 6 years ago

DrSensor commented 6 years ago

Just like html-webpack-plugin that can specify where the entry should be injected, it could be nice to also have that ability on each module.

    new HtmlWebpackExternalsPlugin({
      externals: [{
        module: 'vue',
        entry: {
          path: 'https://unpkg.com/vue',
          type: 'js',
          inject: 'body' | 'head' | 'openingBody' | 'closingBody'
        }
      }]
    }),