23 Star 80 Fork 10

QMUI / QMUI_Web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
qmui.config.js 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
/**
* 项目相关部分代码,复制后应首先进行这些配置
*
*/
'project': 'Demo',
'prefix': 'dm',
'resultCssFileName': 'main.scss',
'cleanFileType': ['../.sass-cache', '../.sass-cache/**/*'],
'needsSourceMaps': false,
'needsImagesMinAndSync': true,
/**
* 项目的路径配置,建议尽量使用推荐的路径,若要修改,请保持与 config.rb 中的指向的目录保持一致,但需要注意因为相对位置不同(这里是以 qmui_web 目录为 Base Path),所以这里的值应该比 config.rb 中的多了一个 ../
*
*/
'paths': {
'htmlSourcePath': ['../../UI_html/**/*.html'],
'imagesSourcePath': '../project/images',
'htmlResultPath': '../../UI_html_result',
'imagesResultPath': '../../public/style/images',
'independentImagesDirectory': '/independent',
'styleResultPath': '../../public/style/css'
},
/**
* BrowerSync 设置
*
*/
'browserSync': {
// browserSync 的模式,本地模式、代理模式或者关闭(server/proxy/close)
'browserSyncMod': 'server',
// 自定义端口
'browserSyncPort': 3030,
// 是否显示 BrowserSync 的日志
'browserSyncShowLog': false,
// server 开启后的默认路径
'browserSyncStartPath': '/web',
'browserSyncHost': '',
'browserSyncWatchPath': ['../../UI_html_result/*.html', '../../public/**/*'],
// 自定义路由,server 模式下方可产生作用
'browserSyncServerRoute': {
'/public': '../../public',
'/web': '../../UI_html_result'
},
// 自定义代理源地址,proxy 模式下方可产生作用
'browserSyncProxy': ''
},
/**
* 模板 include 引擎
*
*/
'template': {
'openIncludeFunction': true,
'includePrefix': '@@'
}
};
JavaScript
1
https://gitee.com/QMUI/QMUI_Web.git
git@gitee.com:QMUI/QMUI_Web.git
QMUI
QMUI_Web
QMUI_Web
master

搜索帮助