use BUILD_ENV instead of NODE_ENV
otherwise the dev dependencies are somehow not used
This commit is contained in:
parent
dacd61a28d
commit
4f76a91572
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
"build": "webpack",
|
||||
"dev": "wrangler -c wrangler.dev.toml dev",
|
||||
"publish-dev": "wrangler -c wrangler.dev.toml publish",
|
||||
"publish-prod": "NODE_ENV=production wrangler -c wrangler.prod.toml publish",
|
||||
"publish-prod": "BUILD_ENV=production wrangler -c wrangler.prod.toml publish",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "PeterCxy",
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports = {
|
|||
fallback: { "os": false },
|
||||
alias: {
|
||||
config: path.resolve(__dirname,
|
||||
process.env.NODE_ENV == "production" ? "config.prod.json" : "config.json")
|
||||
process.env.BUILD_ENV == "production" ? "config.prod.json" : "config.json")
|
||||
}
|
||||
},
|
||||
module: {
|
||||
|
|
Loading…
Reference in a new issue