Skip to content

Instantly share code, notes, and snippets.

View piotrekwitkowski's full-sized avatar

piotrekwitkowski

View GitHub Profile
plugins: [
isProd && new webpack.optimize.SplitChunksPlugin({}),
new htmlPlugin({
filename: 'index.html',
template: 'src/index.html',
chunks: ['index'],
}),
isProd && new BundleAnalyzerPlugin({
module.exports = function (_, env) {
const isProd = env.mode === 'production';
return {
mode: isProd ? 'production' : 'development',
@piotrekwitkowski
piotrekwitkowski / package.json
Last active February 17, 2019 01:24
Jeden webpack.config.js dla buildów produkcyjnych i deweloperskich
"scripts": {
"start": "webpack-dev-server --hot",
"build": "webpack -p"
}