Last active
October 17, 2016 04:42
-
-
Save neves/60365da2c537f0c69bdae5113d421df3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('FooBar') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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