Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Env test #27

Open
mario-zancanaro opened this issue Jul 24, 2018 · 2 comments
Open

Env test #27

mario-zancanaro opened this issue Jul 24, 2018 · 2 comments

Comments

@mario-zancanaro
Copy link

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 mario-zancanaro changed the title env test Env test Jul 24, 2018
@Cretezy
Copy link
Owner

Cretezy commented Jul 25, 2018

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.

@mario-zancanaro
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants