quasar.conf.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  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. // Configuration for your app
  6. // https://quasar.dev/quasar-cli/quasar-conf-js
  7. /* eslint-env node */
  8. module.exports = function (/* ctx */) {
  9. return {
  10. // https://quasar.dev/quasar-cli/supporting-ts
  11. supportTS: false,
  12. // https://quasar.dev/quasar-cli/prefetch-feature
  13. // preFetch: true,
  14. // app boot file (/src/boot)
  15. // --> boot files are part of "main.js"
  16. // https://quasar.dev/quasar-cli/boot-files
  17. boot: [
  18. 'vueMain',
  19. 'axios_request',
  20. 'notify_default',
  21. 'i18n'
  22. ],
  23. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css
  24. css: [
  25. 'app.sass'
  26. ],
  27. // https://github.com/quasarframework/quasar/tree/dev/extras
  28. extras: [
  29. // 'ionicons-v4',
  30. // 'mdi-v5',
  31. // 'fontawesome-v5',
  32. // 'eva-icons',
  33. // 'themify',
  34. // 'line-awesome',
  35. // 'roboto-font-latin-ext', // this or either 'roboto-font', NEVER both!
  36. 'roboto-font', // optional, you are not bound to it
  37. 'material-icons' // optional, you are not bound to it
  38. ],
  39. // Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-~linux安装
  40. build: {
  41. vueRouterMode: 'hash', // available values: 'hash', 'history'
  42. // transpile: false,
  43. // Add dependencies for transpiling with Babel (Array of string/regex)
  44. // (from node_modules, which are by default not transpiled).
  45. // Applies only if "transpile" is set to true.
  46. // transpileDependencies: [],
  47. // rtl: false, // https://quasar.dev/options/rtl-support
  48. // preloadChunks: true,
  49. // showProgress: false,
  50. gzip: true,
  51. // analyze: true,
  52. // Options below are automatically set depending on the env, set them if you want to override
  53. // extractCSS: false,
  54. // https://quasar.dev/quasar-cli/handling-webpack
  55. extendWebpack (cfg) {
  56. cfg.module.rules.push({
  57. resourceQuery: /blockType=i18n/,
  58. type: 'javascript/auto',
  59. use: [
  60. { loader: '@kazupon/vue-i18n-loader' },
  61. { loader: 'yaml-loader' }
  62. ]
  63. })
  64. }
  65. },
  66. // Full list of options: https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-devServer
  67. devServer: {
  68. https: false,
  69. port: 8080,
  70. open: true // opens browser window automatically
  71. },
  72. // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
  73. framework: {
  74. iconSet: 'material-icons', // Quasar icon set
  75. lang: 'zh-hans', // Quasar language pack
  76. config: {},
  77. // Possible values for "importStrategy":
  78. // * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives
  79. // * 'all' - Manually specify what to import
  80. importStrategy: 'auto',
  81. // For special cases outside of where "auto" importStrategy can have an impact
  82. // (like functional components as one of the examples),
  83. // you can manually specify Quasar components/directives to be available everywhere:
  84. //
  85. components: [
  86. 'QFab',
  87. 'QFabAction',
  88. 'QIcon',
  89. 'QLayout',
  90. 'QPageContainer',
  91. 'QPage',
  92. 'QHeader',
  93. 'QPageSticky',
  94. 'QPageScroller',
  95. 'QToolbar',
  96. 'QToolbarTitle',
  97. 'QForm',
  98. 'QInput',
  99. 'QDialog',
  100. 'QTooltip',
  101. 'QBar',
  102. 'QBtnToggle',
  103. 'QImg',
  104. 'QCard',
  105. 'QCardSection',
  106. 'QCardActions',
  107. 'QAvatar',
  108. 'QTabs',
  109. 'QTab',
  110. 'QRouteTab',
  111. 'QCheckbox',
  112. 'QInfiniteScroll',
  113. 'QVideo',
  114. 'QChatMessage'
  115. ],
  116. directives: [
  117. 'ClosePopup'
  118. ],
  119. // Quasar plugins
  120. plugins: [
  121. 'Cookies',
  122. 'LocalStorage',
  123. 'SessionStorage',
  124. 'Dialog',
  125. 'Notify',
  126. 'Meta'
  127. ]
  128. },
  129. // animations: 'all', // --- includes all animations
  130. // https://quasar.dev/options/animations
  131. animations: [
  132. 'fadeIn',
  133. 'rubberBand',
  134. 'zoomIn'
  135. ],
  136. // https://quasar.dev/quasar-cli/developing-ssr/configuring-ssr
  137. ssr: {
  138. pwa: false
  139. },
  140. // https://quasar.dev/quasar-cli/developing-pwa/configuring-pwa
  141. pwa: {
  142. workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
  143. workboxOptions: {}, // only for GenerateSW
  144. manifest: {
  145. name: 'wms templates',
  146. short_name: 'WMS',
  147. description: 'WMS',
  148. display: 'standalone',
  149. orientation: 'portrait',
  150. background_color: '#ffffff',
  151. theme_color: '#027be3',
  152. icons: [
  153. {
  154. src: 'icons/icon-128x128.png',
  155. sizes: '128x128',
  156. type: 'image/png'
  157. },
  158. {
  159. src: 'icons/icon-192x192.png',
  160. sizes: '192x192',
  161. type: 'image/png'
  162. },
  163. {
  164. src: 'icons/icon-256x256.png',
  165. sizes: '256x256',
  166. type: 'image/png'
  167. },
  168. {
  169. src: 'icons/icon-384x384.png',
  170. sizes: '384x384',
  171. type: 'image/png'
  172. },
  173. {
  174. src: 'icons/icon-512x512.png',
  175. sizes: '512x512',
  176. type: 'image/png'
  177. }
  178. ]
  179. }
  180. },
  181. // Full list of options: https://quasar.dev/quasar-cli/developing-cordova-apps/configuring-cordova
  182. cordova: {
  183. // noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
  184. },
  185. // Full list of options: https://quasar.dev/quasar-cli/developing-capacitor-apps/configuring-capacitor
  186. capacitor: {
  187. hideSplashscreen: true
  188. },
  189. // Full list of options: https://quasar.dev/quasar-cli/developing-electron-apps/configuring-electron
  190. electron: {
  191. bundler: 'builder', // 'packager' or 'builder'
  192. packager: {
  193. // https://github.com/electron-userland/electron-packager/blob/master/docs/api.md#options
  194. // OS X / Mac App Store
  195. // appBundleId: '',
  196. // appCategoryType: '',
  197. // osxSign: '',
  198. // protocol: 'myapp://path',
  199. // Windows only
  200. // win32metadata: { ... }
  201. },
  202. builder: {
  203. // https://www.electron.build/configuration/configuration
  204. appId: 'com.electron.greaterwms',
  205. productName: 'GreaterWMS',
  206. copyright: '2022SR0153577',
  207. publish: [
  208. {
  209. provider: 'generic',
  210. url: 'https://production.56yhz.com/media/'
  211. }
  212. ],
  213. mac: {
  214. target: 'dmg'
  215. },
  216. linux: {
  217. target: [
  218. {
  219. target: 'deb'
  220. }
  221. ]
  222. },
  223. win: {
  224. target: [
  225. {
  226. target: 'nsis',
  227. arch: [
  228. 'x64',
  229. 'ia32'
  230. ]
  231. }
  232. ]
  233. },
  234. nsis: {
  235. uninstallDisplayName: 'GreaterWMS',
  236. oneClick: false,
  237. allowToChangeInstallationDirectory: true,
  238. createDesktopShortcut: true,
  239. createStartMenuShortcut: true,
  240. shortcutName: 'GreaterWMS',
  241. runAfterFinish: true
  242. },
  243. compression: 'maximum'
  244. },
  245. // More info: https://quasar.dev/quasar-cli/developing-electron-apps/node-integration
  246. nodeIntegration: true,
  247. extendWebpack (/* cfg */) {
  248. // do something with Electron main process Webpack cfg
  249. // chainWebpack also available besides this extendWebpack
  250. }
  251. }
  252. }
  253. }