You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
467 B
18 lines
467 B
module.exports = (isUsingDevServer) => { |
|
const scripts = { |
|
build: "webpack --mode=production --node-env=production", |
|
"build:dev": "webpack --mode=development", |
|
"build:prod": "webpack --mode=production --node-env=production", |
|
watch: "webpack --watch", |
|
}; |
|
if (isUsingDevServer) { |
|
scripts.serve = "webpack serve"; |
|
} |
|
|
|
return { |
|
version: "1.0.0", |
|
description: "My webpack project", |
|
name: "my-webpack-project", |
|
scripts, |
|
}; |
|
};
|
|
|