html-additional-extensions-webpack-plugin
v0.2.0
Published
Add additional extensions to links at script and link tags
Downloads
2
Readme
html-additional-extensions-webpack-plugin
About
That addon adding an additional extensions at script and link tags in html-webpack-plugin.
Installation
$ yarn add --dev html-additional-extensions-webpack-plugin
OR
$ npm install --save-dev html-additional-extensions-webpack-plugin
Usage
//webpack.config.js
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlAdditionalExtPlugin = require('html-additional-extensions-webpack-plugin');
const configuration = (() => {
const config = {
entry: ...,
output: ...,
devServer: ...,
resolve: ...,
module: ...,
plugins: [
new HtmlWebpackPlugin(),
new HtmlAdditionalExtPlugin({
css: '.gz',
js: 'gz',
})
],
};
return config;
})();
module.exports = configuration;
License
This project is licensed under MIT.