From 9a2dcd40d37c01896deeae0c8059564b4bdd6dc1 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 8 Oct 2018 10:05:13 +0200 Subject: Rename Webpack config to official recommendation Signed-off-by: David Mehren --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 08e39b26..44e22449 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "test": "npm run-script standard && npm run-script jsonlint", "jsonlint": "find . -not -path './node_modules/*' -type f -name '*.json' -o -type f -name '*.json.example' | while read json; do echo $json ; jq . $json; done", "standard": "node ./node_modules/standard/bin/cmd.js", - "dev": "webpack --config webpack.config.js --mode=production --progress --colors --watch", - "build": "webpack --config webpack.production.js --progress --colors --bail", + "dev": "webpack --config webpack.dev.js --progress --colors --watch", + "build": "webpack --config webpack.prod.js --progress --colors --bail", "postinstall": "bin/heroku", "start": "node app.js", "doctoc": "doctoc --title='# Table of Contents' README.md" -- cgit v1.2.3 From 9f92bba036860c61277d252a39a5417f67231bc1 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Wed, 10 Oct 2018 21:54:27 +0200 Subject: Use webpack-merge. Move html export config to own file. Delete unnecessary config options. Use cheap source maps. Signed-off-by: David Mehren --- package.json | 1 + 1 file changed, 1 insertion(+) (limited to 'package.json') diff --git a/package.json b/package.json index 44e22449..3aa28fad 100644 --- a/package.json +++ b/package.json @@ -188,6 +188,7 @@ "url-loader": "^1.0.1", "webpack": "^4.14.0", "webpack-cli": "^3.1.0", + "webpack-merge": "^4.1.4", "webpack-parallel-uglify-plugin": "^1.1.0" }, "standard": { -- cgit v1.2.3