webpack: expose production/debug mode
so that when things goes wrong we can make a debug build
Showing
... | ... | @@ -2,8 +2,10 @@ |
"name": "monaco-editor-erp5", | ||
"scripts": { | ||
"build:wasm": "wasm-pack -v build ruff/crates/ruff_wasm --target web", | ||
"build": "webpack --config webpack.config.js", | ||
"deploy": "node deploy.js" | ||
"build": "npm run build:prod", | ||
"build:prod": "webpack --config webpack.config.js --node-env production", | ||
"build:dev": "webpack --config webpack.config.js --node-env development", | ||
"deploy": "NODE_ENV=production node deploy.js" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.5", | ||
... | ... |
Please register or sign in to comment