style-ext-html-webpack-plugin for webpack 4
This plugin fixed problems for style-ext-html-webpack-plugin whoes current version does not supporte webpack 4. The funtionality is to extract CSS file in inline style.
npm i --save-dev style-ext-html-webpack-plugin-webpack-4
const HtmlWebpackPlugin = ;const StyleExtHtmlWebpackPlugin = ;plugins:filename: 'test.html'template: 'src/assets/test.html'// this one should be placed after HtmlWebpackPlugin;
The output will like:
<!--transform inline link tag to style tag-->