Env test
Hello! Thanks for create noderize. I really appreciated.
I just followed here: https://noderize.js.org/docs/configuration-noderize.html#env
and typed:
$> yarn build --env test
UnhandledPromiseRejectionWarning: WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. configuration.mode should be one of these: "development" | "production" | "none" Enable production optimizations or development hints.
Am I missing something or we don't have test available?
My package.json
"noderize": {
"env": {
"test": {
"debug": true
},
"production": {
"sourcemap": false,
"minify": true
}
}
Thanks
Hmm. I see the problem here. Definitely something to look into.
Right now, I believe I set the Webpack mode as whatever env is, which only accepts a production and development or none.
Even production or test it not set correctly. I have always development set doesn't matter what I set (export NODE_ENV=production | NODE_ENV=test)
Thanks