You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes you may need to change the webpack config only for the legacy build, or only for the modern build.
83
+
84
+
Vue-cli uses two environment variables to communicate this:
85
+
86
+
*`VUE_CLI_MODERN_MODE`: The build was started with the `--modern` flag
87
+
*`VUE_CLI_MODERN_BUILD`: when true, the current config is for the modern build. Otherwise it's for the legacy build.
88
+
89
+
**Important:** These variables are only accessible in `chainWebpack()` and `configureWebpack()` functions, not in the `vue.config.js` file's root scope.
0 commit comments