This file contains 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
node --inspect ./node_modules/.bin/webpack |
This file contains 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
let CrudeTimingPlugin = function() {}; | |
CrudeTimingPlugin.prototype.apply = function(compiler) { | |
compiler.plugin('compilation', (compilation) => { | |
let startOptimizePhase; | |
compilation.plugin('optimize-chunk-assets', (chunks, callback) => { | |
// Cruddy way of measuring minification time. UglifyJSPlugin does all | |
// its work in this phase of compilation so we time the duration of | |
// the entire phase |
This file contains 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 CrudeTimingPlugin = require('./crude-timing-plugin'); | |
{ | |
plugins: [ | |
new CrudeTimingPlugin(), | |
], | |
} |
This file contains 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
let CrudeTimingPlugin = function() {}; | |
CrudeTimingPlugin.prototype.apply = function(compiler) { | |
compiler.plugin('compilation', (compilation) => { | |
let startOptimizePhase; | |
compilation.plugin('optimize-chunk-assets', (chunks, callback) => { | |
// Cruddy way of measuring minification time. UglifyJSPlugin does all | |
// its work in this phase of compilation so we time the duration of | |
// the entire phase |
This file contains 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 CrudeTimingPlugin = require('./crude-timing-plugin'); | |
module.exports = { | |
plugins: [ | |
new CrudeTimingPlugin(), | |
new UglifyJSPlugin(), | |
] | |
}; |
This file contains 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
new UglifyJsPlugin({ | |
uglifyOptions: { | |
compress: { | |
arrows: false, | |
booleans: false, | |
cascade: false, | |
collapse_vars: false, | |
comparisons: false, | |
computed_props: false, | |
hoist_funs: false, |
This file contains 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
{ | |
0: "d4920286de51402132dc", /* ← hash for the application bundle */ | |
1: "29a3cf9344f1503c9f8f", | |
2: "e22b11ab6e327c7da035", | |
/* .. and so on ... */ | |
} |
OlderNewer