Sfoglia il codice sorgente

Avoid vue warning in dev mode (#29188)

`vue` currently outputs a warning for this undefined variable during
development, which is apparently caused by a bug in `vue-cli`.
Workaround by setting this variable.

Ref: https://github.com/vuejs/vue-cli/pull/7443
Ref: https://stackoverflow.com/a/77765007/808699
tags/v1.22.0-rc0
silverwind 3 mesi fa
parent
commit
e9a1ffba2c
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      webpack.config.js

+ 1
- 0
webpack.config.js Vedi File

@@ -172,6 +172,7 @@ export default {
new DefinePlugin({
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false, // https://github.com/vuejs/vue-cli/pull/7443
}),
new VueLoaderPlugin(),
new MiniCssExtractPlugin({

Loading…
Annulla
Salva