html-webpack-externals
A plugin for html-webpack-plugin that insert into html in order according to webpackConfig.externals.
Look
This plugin must webpack >= 4, html-webpack-plugin >= 4.0.
Install
$ npm install html-webpack-externals --save-dev
Example
const webpackHtmlPlugin = ;const webpackHtmlExternals = ; externals: 'socketio': 'io' plugins: resolve: 'socketio': 'https://cdn.bootcss.com/socket.io/2.3.0/socket.io.slim.js' dirname: 'public'