/* eslint-env node */ /* * This file runs in a Node context (it's NOT transpiled by Babel), so use only * the ES6 features that are supported by your Node version. https://node.green/ */ // Configuration for your app // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js const { configure } = require("quasar/wrappers"); const path = require("path"); module.exports = configure(function (/* ctx */) { return { // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature // preFetch: true, // app boot file (/src/boot) // --> boot files are part of "main.js" // https://v2.quasar.dev/quasar-cli-vite/boot-files boot: ["i18n", "axios", "naiveUI"], // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#css css: ["app.scss"], // https://github.com/quasarframework/quasar/tree/dev/extras extras: [ // 'ionicons-v4', // 'mdi-v7', // 'fontawesome-v6', // 'eva-icons', // 'themify', // 'line-awesome', // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both! "roboto-font", // optional, you are not bound to it "material-icons", // optional, you are not bound to it ], // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#build build: { target: { browser: ["es2019", "edge88", "firefox78", "chrome87", "safari13.1"], node: "node20", }, 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: [ [ "@intlify/vite-plugin-vue-i18n", { // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false` // compositionOnly: false, // if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}', // you need to set `runtimeOnly: false` // runtimeOnly: false, // you need to set i18n resource including paths ! include: path.resolve(__dirname, "./src/i18n/**"), }, ], ], }, // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer devServer: { // https: true open: true, // opens browser window automatically }, // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#framework framework: { config: {}, // iconSet: 'material-icons', // Quasar icon set lang: 'zh-CN', // Quasar language pack // For special cases outside of where the auto-import strategy can have an impact // (like functional components as one of the examples), // you can manually specify Quasar components/directives to be available everywhere: // components: ['QInput'], // directives: [], // Quasar plugins plugins: ["LocalStorage", "SessionStorage", "Notify","Dialog"], }, // animations: 'all', // --- includes all animations // https://v2.quasar.dev/options/animations animations: 'all', // https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#property-sourcefiles // sourceFiles: { // rootComponent: 'src/App.vue', // router: 'src/router/index', // store: 'src/store/index', // registerServiceWorker: 'src-pwa/register-service-worker', // serviceWorker: 'src-pwa/custom-service-worker', // pwaManifestFile: 'src-pwa/manifest.json', // electronMain: 'src-electron/electron-main', // electronPreload: 'src-electron/electron-preload' // }, // https://v2.quasar.dev/quasar-cli-vite/developing-ssr/configuring-ssr ssr: { // ssrPwaHtmlFilename: "sd.html", // do NOT use index.html as name! // will mess up SSR // extendSSRWebserverConf(esbuildConf) {}, // extendPackageJson(json) {}, pwa: false, /** * 自己提供手动处理 store 中 state 序列化的方法 * as window.__INITIAL_STATE__ to the client-side (through a