Quasar framework build if not a root path

build: {
      target: {
        browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
        node: 'node16'
      },

      vueRouterMode: 'hash', // available values: 'hash', 'history'
      // vueRouterBase,
      // vueDevtools,
      // vueOptionsAPI: false,

      // rebuildCache: true, // rebuilds Vite/linter/etc cache on startup

      // publicPath: '/',
      // analyze: true,
      // env: {},
      // rawDefine: {}
      // ignorePublicFolder: true,
      // minify: false,
      // polyfillModulePreload: true,
      // distDir

      // extendViteConf (viteConf) {},
      // viteVuePluginOptions: {},

      // vitePlugins: [
      //   [ 'package-name', { ..options.. } ]
      // ]

      // mouseleo: relative publicPath, such as /spa or /app, etc...
      publicPath: '',
      extendViteConf (viteConf, { isServer, isClient }) {
        viteConf.base = ''
      },
    },

  

posted on 2024-04-05 14:22  刘应杰  阅读(5)  评论(0编辑  收藏  举报

导航