From 12c18519adeff6abd2527218d0f0b8b9a84526c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A2=D0=B0=D1=82=D1=8C=D1=8F=D0=BD=D0=B0=20=D0=90=D0=BD?= =?UTF-8?q?=D0=B4=D1=80=D0=B5=D0=B5=D0=B2=D0=B0?= Date: Sun, 19 May 2024 21:09:30 +0300 Subject: [PATCH] add package --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 6b7f486..04e3fc7 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,7 @@ "description": "My webpack project", "main": "./src/index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "build": "webpack --mode=production --node-env=production", + "build": "rm -rf dist && NODE_ENV=production npx webpack", "build:dev": "webpack --mode=development", "build:prod": "webpack --mode=production --node-env=production", "watch": "webpack --watch",