You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
499 B

  1. // vue.config.js
  2. const webpack = require('webpack');
  3. module.exports = {
  4. configureWebpack: {
  5. plugins: [
  6. new webpack.DefinePlugin({
  7. '__VUE_I18N_FULL_INSTALL__': JSON.stringify(true),
  8. '__VUE_I18N_LEGACY_API__': JSON.stringify(false),
  9. '__INTLIFY_PROD_DEVTOOLS__': JSON.stringify(false)
  10. })
  11. ]
  12. },
  13. // 如果需要自定义其他 webpack 配置,可以在这里添加
  14. chainWebpack: (config) => {
  15. // 例如,你可以在这里添加其他配置
  16. }
  17. }