代码拉取完成,页面将自动刷新
const path = require("path");
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = function ( ctx ) {
return {
supportTS: false,
boot: ["i18n", "/api", "main","msg"],
css: ["app.css"],
extras: [
"roboto-font", // optional, you are not bound to it
"material-icons", // optional, you are not bound to it
],
framework: {
iconSet: "material-icons", // Quasar icon set
lang: "zh-hans", //中文包
config: {
cordova: {
// 在iOS移动设备上添加动态顶部填充(top padding)
iosStatusBarPadding: true/false,
// 点击手机后退按钮后app是否退出
// Quasar v1.9.3+使用true/false,v1.12.6+使用'*'通配符和数组值
backButtonExit: true/false/'*'/['/login', '/home', '/my-page'],
// 另一方面,下面的内容完全禁用了
// Quasar的后退按钮管理
// 需要Quasar v1.14.1+
backButton: true/false
},
notify: {},
loadingBar: {},
brand: {
primary: "#4e88c2",
secondary: "#26A69A",
accent: "#9C27B0",
dark: "#1d1d1d",
positive: "#21BA45",
negative: "#C10015",
info: "#31CCEC",
warning: "#F2C037",
withe: "#fff",
},
},
importStrategy: "auto",
plugins: ["Dialog", "Notify", "LoadingBar", "AppFullscreen", "Loading"],
config: {
notify: {
position: "top",
timeout: 4000,
color: "info",
icon: "info",
// actions: [{ icon: "close", color: "white" }],
},
},
},
animations: [],
build: {
vueRouterMode: "history",
publicPath: "admin",
transpile: true, // 执行babel转码
vueCompiler: false, // 仅 Vue运行时
scopeHoisting: true, // 提升运行时性能
analyze: false, // 显示分析
modern: true, // ES6
extractCSS: false, // 从Vue文件中提取CSS
minify: true, // 缩小代码
preloadChunks: true, // 预加载
sourceMap: ctx.dev,
gzip: false,
extendWebpack(cfg) {
cfg.resolve.alias = {
...cfg.resolve.alias, // This adds the existing alias
"@": resolve("src"),
};
},
env: {
PRODUCT_NAME: "CC-ADMIN企业级快速开发平台",
BASE_URL: "/admin",
SERVER_URL: "http://www.sddlxm.com:9021",
},
},
devServer: {
https: false,
port: 8080,
open: true, // opens browser window automatically
proxy: {
"/api": {
target: "http://www.sddlxm.com:9021/",
changeOrigin: true,
},
},
},
ssr: {
pwa: false,
},
pwa: {
workboxPluginMode: "GenerateSW", // 'GenerateSW' or 'InjectManifest'
workboxOptions: {}, // only for GenerateSW
manifest: {
name: `Quasar App`,
short_name: `Quasar App`,
description: `A Quasar Framework app`,
display: "standalone",
orientation: "portrait",
background_color: "#ffffff",
theme_color: "#ffaa00",
icons: [],
},
},
cordova: {},
capacitor: {
hideSplashscreen: true,
},
electron: {
bundler: "packager", // 'packager' or 'builder'
packager: {},
builder: {
appId: "newadmin",
},
nodeIntegration: true,
extendWebpack(/* cfg */) {},
},
};
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。