Skip to content
New issue

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

WARNING in DefinePlugin Conflicting values for 'process.env.NODE_ENV' #347

Closed
jaywcjlove opened this issue Feb 24, 2022 · 1 comment
Closed

Comments

@jaywcjlove
Copy link
Member

{
  "scripts": {
    "start": "kkt start",
    //....
  }
}
WARNING in DefinePlugin
Conflicting values for 'process.env.NODE_ENV'

1 WARNING in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)

1 warning has detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
@jaywcjlove
Copy link
Member Author

kkt/core/src/index.ts

Lines 4 to 5 in cc9453d

export { default as build } from './scripts/build';
export { default as start } from './scripts/start';

process.env.NODE_ENV = 'production';

process.env.NODE_ENV = 'development';

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

No branches or pull requests

1 participant