123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237 |
- const ESLintPlugin = require("eslint-webpack-plugin");
- const { configure } = require("quasar/wrappers");
- module.exports = configure(function (ctx) {
- return {
-
- supportTS: false,
-
-
-
-
-
- boot: [],
-
- css: ["app.scss"],
-
- extras: [
-
-
-
-
-
-
-
- "roboto-font",
- "material-icons",
- ],
-
- build: {
- vueRouterMode: "history",
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- chainWebpack(chain) {
- chain
- .plugin("eslint-webpack-plugin")
- .use(ESLintPlugin, [{ extensions: ["js", "vue"] }]);
- },
- },
-
- devServer: {
- server: {
- type: "http",
- },
- port: 9051,
- open: true,
- },
-
- framework: {
- config: {
- notify: {
-
- },
- loading: {
-
- },
- },
-
-
-
-
-
-
-
-
-
- plugins: ["Notify", "Loading"],
- },
-
-
- animations: [],
-
- ssr: {
- pwa: false,
-
-
- prodPort: 3000,
-
- maxAge: 1000 * 60 * 60 * 24 * 30,
-
- chainWebpackWebserver(chain) {
- chain
- .plugin("eslint-webpack-plugin")
- .use(ESLintPlugin, [{ extensions: ["js"] }]);
- },
- middlewares: [
- ctx.prod ? "compression" : "",
- "render",
- ],
- },
-
- pwa: {
- workboxPluginMode: "GenerateSW",
- workboxOptions: {},
-
-
- chainWebpackCustomSW(chain) {
- chain
- .plugin("eslint-webpack-plugin")
- .use(ESLintPlugin, [{ extensions: ["js"] }]);
- },
- manifest: {
- name: `Hichina Admin`,
- short_name: `Hichina Admin`,
- description: `A Quasar Project`,
- display: "standalone",
- orientation: "portrait",
- background_color: "#ffffff",
- theme_color: "#027be3",
- icons: [
- {
- src: "icons/icon-128x128.png",
- sizes: "128x128",
- type: "image/png",
- },
- {
- src: "icons/icon-192x192.png",
- sizes: "192x192",
- type: "image/png",
- },
- {
- src: "icons/icon-256x256.png",
- sizes: "256x256",
- type: "image/png",
- },
- {
- src: "icons/icon-384x384.png",
- sizes: "384x384",
- type: "image/png",
- },
- {
- src: "icons/icon-512x512.png",
- sizes: "512x512",
- type: "image/png",
- },
- ],
- },
- },
-
- cordova: {
-
- },
-
- capacitor: {
- hideSplashscreen: true,
- },
-
- electron: {
- bundler: "packager",
- packager: {
-
-
-
-
-
-
-
-
- },
- builder: {
-
- appId: "hichina-admin-front",
- },
-
- chainWebpackMain(chain) {
- chain
- .plugin("eslint-webpack-plugin")
- .use(ESLintPlugin, [{ extensions: ["js"] }]);
- },
- chainWebpackPreload(chain) {
- chain
- .plugin("eslint-webpack-plugin")
- .use(ESLintPlugin, [{ extensions: ["js"] }]);
- },
- },
- };
- });
|