1 Star 0 Fork 0

qiaoyongli/quasar后台管理系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
quasar.conf.js 3.43 KB
一键复制 编辑 原始数据 按行查看 历史
qiaoyongli 提交于 2024-01-21 15:56 . 提交代码到仓库
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 */) {},
},
};
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qiaoyongli/quasar.git
git@gitee.com:qiaoyongli/quasar.git
qiaoyongli
quasar
quasar后台管理系统
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385