|
| 1 | +/* |
| 2 | + * This file runs in a Node context (it's NOT transpiled by Babel), so use only |
| 3 | + * the ES6 features that are supported by your Node version. https://node.green/ |
| 4 | + */ |
| 5 | + |
| 6 | +// Configuration for your app |
| 7 | +// https://quasar.dev/quasar-cli/quasar-conf-js |
| 8 | + |
| 9 | +const { configure } = require('quasar/wrappers'); |
| 10 | + |
| 11 | +module.exports = configure(function (ctx) { |
| 12 | + return { |
| 13 | + // https://quasar.dev/quasar-cli/supporting-ts |
| 14 | + supportTS: true, |
| 15 | + |
| 16 | + // https://quasar.dev/quasar-cli/prefetch-feature |
| 17 | + // preFetch: true, |
| 18 | + |
| 19 | + // app boot file (/src/boot) |
| 20 | + // --> boot files are part of "main.js" |
| 21 | + // https://quasar.dev/quasar-cli/boot-files |
| 22 | + boot: [ |
| 23 | + 'i18n', |
| 24 | + ], |
| 25 | + |
| 26 | + // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css |
| 27 | + css: [ |
| 28 | + 'app.scss' |
| 29 | + ], |
| 30 | + |
| 31 | + // https://github.com/quasarframework/quasar/tree/dev/extras |
| 32 | + extras: [ |
| 33 | + // 'ionicons-v4', |
| 34 | + // 'mdi-v5', |
| 35 | + // 'fontawesome-v5', |
| 36 | + // 'eva-icons', |
| 37 | + // 'themify', |
| 38 | + // 'line-awesome', |
| 39 | + // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both! |
| 40 | + |
| 41 | + 'roboto-font', // optional, you are not bound to it |
| 42 | + 'material-icons', // optional, you are not bound to it |
| 43 | + ], |
| 44 | + |
| 45 | + // Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build |
| 46 | + build: { |
| 47 | + vueRouterMode: 'hash', // available values: 'hash', 'history' |
| 48 | + |
| 49 | + // transpile: false, |
| 50 | + // publicPath: '/', |
| 51 | + |
| 52 | + // Add dependencies for transpiling with Babel (Array of string/regex) |
| 53 | + // (from node_modules, which are by default not transpiled). |
| 54 | + // Applies only if "transpile" is set to true. |
| 55 | + // transpileDependencies: [], |
| 56 | + |
| 57 | + // rtl: true, // https://quasar.dev/options/rtl-support |
| 58 | + // preloadChunks: true, |
| 59 | + // showProgress: false, |
| 60 | + // gzip: true, |
| 61 | + // analyze: true, |
| 62 | + |
| 63 | + // Options below are automatically set depending on the env, set them if you want to override |
| 64 | + // extractCSS: false, |
| 65 | + |
| 66 | + // https://quasar.dev/quasar-cli/handling-webpack |
| 67 | + // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain |
| 68 | + chainWebpack (/* chain */) { |
| 69 | + // |
| 70 | + }, |
| 71 | + }, |
| 72 | + |
| 73 | + // Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer |
| 74 | + devServer: { |
| 75 | + server: { |
| 76 | + type: 'https' |
| 77 | + }, |
| 78 | + port: 8080, |
| 79 | + open: true // opens browser window automatically |
| 80 | + }, |
| 81 | + |
| 82 | + // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework |
| 83 | + framework: { |
| 84 | + config: {}, |
| 85 | + |
| 86 | + // iconSet: 'material-icons', // Quasar icon set |
| 87 | + // lang: 'en-US', // Quasar language pack |
| 88 | + |
| 89 | + // For special cases outside of where the auto-import strategy can have an impact |
| 90 | + // (like functional components as one of the examples), |
| 91 | + // you can manually specify Quasar components/directives to be available everywhere: |
| 92 | + // |
| 93 | + // components: [], |
| 94 | + // directives: [], |
| 95 | + |
| 96 | + // Quasar plugins |
| 97 | + plugins: [ |
| 98 | + 'Notify', |
| 99 | + 'LocalStorage' |
| 100 | + ] |
| 101 | + }, |
| 102 | + |
| 103 | + // animations: 'all', // --- includes all animations |
| 104 | + // https://quasar.dev/options/animations |
| 105 | + animations: [], |
| 106 | + |
| 107 | + // https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr |
| 108 | + ssr: { |
| 109 | + pwa: false, |
| 110 | + |
| 111 | + // manualStoreHydration: true, |
| 112 | + // manualPostHydrationTrigger: true, |
| 113 | + |
| 114 | + prodPort: 3000, // The default port that the production server should use |
| 115 | + // (gets superseded if process.env.PORT is specified at runtime) |
| 116 | + |
| 117 | + maxAge: 1000 * 60 * 60 * 24 * 30, |
| 118 | + // Tell browser when a file from the server should expire from cache (in ms) |
| 119 | + |
| 120 | + chainWebpackWebserver (/* chain */) { |
| 121 | + // |
| 122 | + }, |
| 123 | + |
| 124 | + middlewares: [ |
| 125 | + ctx.prod ? 'compression' : '', |
| 126 | + 'render' // keep this as last one |
| 127 | + ] |
| 128 | + }, |
| 129 | + |
| 130 | + // https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa |
| 131 | + pwa: { |
| 132 | + workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest' |
| 133 | + workboxOptions: {}, // only for GenerateSW |
| 134 | + |
| 135 | + // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts]) |
| 136 | + // if using workbox in InjectManifest mode |
| 137 | + chainWebpackCustomSW (/* chain */) { |
| 138 | + // |
| 139 | + }, |
| 140 | + |
| 141 | + manifest: { |
| 142 | + name: `Static HTML in Pages`, |
| 143 | + short_name: `Static HTML in Pages`, |
| 144 | + description: `Chrome Extension`, |
| 145 | + display: 'standalone', |
| 146 | + orientation: 'portrait', |
| 147 | + background_color: '#ffffff', |
| 148 | + theme_color: '#027be3', |
| 149 | + icons: [ |
| 150 | + { |
| 151 | + src: 'icons/icon-128x128.png', |
| 152 | + sizes: '128x128', |
| 153 | + type: 'image/png' |
| 154 | + }, |
| 155 | + { |
| 156 | + src: 'icons/icon-192x192.png', |
| 157 | + sizes: '192x192', |
| 158 | + type: 'image/png' |
| 159 | + }, |
| 160 | + { |
| 161 | + src: 'icons/icon-256x256.png', |
| 162 | + sizes: '256x256', |
| 163 | + type: 'image/png' |
| 164 | + }, |
| 165 | + { |
| 166 | + src: 'icons/icon-384x384.png', |
| 167 | + sizes: '384x384', |
| 168 | + type: 'image/png' |
| 169 | + }, |
| 170 | + { |
| 171 | + src: 'icons/icon-512x512.png', |
| 172 | + sizes: '512x512', |
| 173 | + type: 'image/png' |
| 174 | + } |
| 175 | + ] |
| 176 | + } |
| 177 | + }, |
| 178 | + |
| 179 | + // Full list of options: https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova |
| 180 | + cordova: { |
| 181 | + // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing |
| 182 | + }, |
| 183 | + |
| 184 | + // Full list of options: https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor |
| 185 | + capacitor: { |
| 186 | + hideSplashscreen: true |
| 187 | + }, |
| 188 | + |
| 189 | + // Full list of options: https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron |
| 190 | + electron: { |
| 191 | + bundler: 'packager', // 'packager' or 'builder' |
| 192 | + |
| 193 | + packager: { |
| 194 | + // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options |
| 195 | + |
| 196 | + // OS X / Mac App Store |
| 197 | + // appBundleId: '', |
| 198 | + // appCategoryType: '', |
| 199 | + // osxSign: '', |
| 200 | + // protocol: 'myapp://path', |
| 201 | + |
| 202 | + // Windows only |
| 203 | + // win32metadata: { ... } |
| 204 | + }, |
| 205 | + |
| 206 | + builder: { |
| 207 | + // https://www.electron.build/configuration/configuration |
| 208 | + |
| 209 | + appId: 'static_html_in_page' |
| 210 | + }, |
| 211 | + |
| 212 | + // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain |
| 213 | + chainWebpack (/* chain */) { |
| 214 | + // do something with the Electron main process Webpack cfg |
| 215 | + // extendWebpackMain also available besides this chainWebpackMain |
| 216 | + }, |
| 217 | + |
| 218 | + // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain |
| 219 | + chainWebpackPreload (/* chain */) { |
| 220 | + // do something with the Electron main process Webpack cfg |
| 221 | + // extendWebpackPreload also available besides this chainWebpackPreload |
| 222 | + }, |
| 223 | + } |
| 224 | + } |
| 225 | +}); |
0 commit comments