Skip to content

Instantly share code, notes, and snippets.

@neves
Last active October 17, 2016 04:42
Show Gist options
  • Save neves/60365da2c537f0c69bdae5113d421df3 to your computer and use it in GitHub Desktop.
Save neves/60365da2c537f0c69bdae5113d421df3 to your computer and use it in GitHub Desktop.
console.log('FooBar')
{
"name": "html-webpack-plugin-high-cpu",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "webpack-dev-server"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"html-webpack-plugin": "^2.22.0",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.16.2"
}
}
const WebpackHtmlPlugin = require('html-webpack-plugin')
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js'
},
plugins: [
new WebpackHtmlPlugin() // comment this plugin and cpu drops from 20% to 0.3%
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment