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",