Noderize icon indicating copy to clipboard operation
Noderize copied to clipboard

Env test

Open mario-zancanaro opened this issue 7 years ago • 2 comments

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

mario-zancanaro avatar Jul 24 '18 15:07 mario-zancanaro

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.

Cretezy avatar Jul 25 '18 00:07 Cretezy

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

mario-zancanaro avatar Aug 29 '18 10:08 mario-zancanaro