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
Copy file name to clipboardExpand all lines: docs/guide/advanced/optimization.md
-100Lines changed: 0 additions & 100 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,100 +94,6 @@ module.exports = {
94
94
95
95
About options and features, see the detail [page](https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n#intlifyunplugin-vue-i18n)
96
96
97
-
### vite-plugin-vue-i18n
98
-
99
-
[`vite`](https://vitejs.dev/) is next generation frontend tooling.
100
-
101
-
Intlify project is providing [`vite-plugin-vue-i18n`](https://github.com/intlify/bundle-tools/tree/main/packages/vite-plugin-vue-i18n)
102
-
103
-
If you do a production build, Vue I18n will automatically bundle the runtime only module
104
-
105
-
:::warning NOTICE
106
-
This plugin support until `Vite 3`. If you would like to use on `Vite 4`, please use `@intlify/unplugin-vue-i18n`
test:/\.(json5?|ya?ml)$/, // target json, json5, yaml and yml files
176
-
type:'javascript/auto',
177
-
loader:'@intlify/vue-i18n-loader',
178
-
include: [ // Use `Rule.include` to specify the files of locale messages to be pre-compiled
179
-
path.resolve(__dirname, 'src/locales')
180
-
]
181
-
},
182
-
// ...
183
-
]
184
-
}
185
-
}
186
-
```
187
-
188
-
#### More configuration
189
-
190
-
About options and features, see the detail [page](https://github.com/intlify/bundle-tools/tree/main/packages/vue-i18n-loader)
191
97
192
98
### Quasar CLI
193
99
@@ -243,12 +149,6 @@ About how to configure for bundler, see the [here](#configure-feature-flags-for-
243
149
- Vite: configured by default, but can be overwritten using the [`define` option](https://github.com/vitejs/vite/blob/a4133c073e640b17276b2de6e91a6857bdf382e1/src/node/config.ts#L72-L76)
244
150
- Quasar CLI: configured by default, but can be overwritten using quasar.conf.js > build > [env option](https://quasar.dev/quasar-cli/handling-process-env#adding-to-process-env)
245
151
246
-
:::tip NOTE
247
-
If you are using Vite, you can do the same thing by specifying the option in the [plugin provided officially](https://github.com/intlify/vite-plugin-vue-i18n).
248
-
249
-
Also, if you are using the Vue CLI, you can use the [officially provided plugin](https://github.com/intlify/vue-cli-plugin-i18n) to optimize the settings in `vue.config.js`.
250
-
:::
251
-
252
152
:::tip NOTE
253
153
The replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.
0 commit comments