We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following config
... env : { dev : { NODE_ENV : 'development', }, prod : { NODE_ENV : 'production', }, } ... grunt.registerTask('myTest', 'Load constants', function() { console.log( process.env.NODE_ENV); const webpack = require('./webpack.config'); }); grunt.registerTask('testEnv', ['env:prod','myTest']);
Whe I run grunt testEnv it log development not production, Why?
grunt testEnv
development
production
I have a webpack.config.js with const __DEV__ = process.env.NODE_ENV === 'development'; , it is always true and NODE_ENV is not set to production
webpack.config.js
const __DEV__ = process.env.NODE_ENV === 'development';
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following config
Whe I run
grunt testEnv
it logdevelopment
notproduction
, Why?I have a
webpack.config.js
withconst __DEV__ = process.env.NODE_ENV === 'development';
, it is always true and NODE_ENV is not set to productionThe text was updated successfully, but these errors were encountered: