From 84719fcdbd11e12a5080e0b9341cf150399f0a39 Mon Sep 17 00:00:00 2001 From: Sune Sylvest Nilausen Date: Sun, 19 Dec 2021 19:54:22 +0100 Subject: [PATCH] Postscript for running prod node --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 452d5c5..31e240d 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", "prod": "npm run production", "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", - "polyfill": "cross-env CONTEXT=polyfill NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + "polyfill": "cross-env CONTEXT=polyfill NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "postinstall": "npm run prod" }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.12.1",