Disables html-webpack-plugin from emiting a file 😆
You must be running Webpack on Node 4.x or higher. The plugin is available via npm:
$ npm install html-webpack-disable-plugin --save-dev
Whenever you wish to supress the html-webpack-plugin from emmiting a html file, just add this plugin into your plugins list and boom. Done.
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const HtmlDisablePlugin = require('html-webpack-disable-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.join(process.cwd(), '.tmp/'),
filename: 'emit-me-if-you-can.js',
},
plugins: [
new HtmlWebpackPlugin(),
new HtmlDisablePlugin()
],
};
If you've liked this, consider giving it a ⭐!
MIT all the way. Let's create awesome stuff! 🚀