Files
whtml/Template/config/index.js
2024-09-27 00:52:52 +08:00

39 lines
1.1 KiB
JavaScript
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 网站配置信息
*/
module.exports = {
jade: {
// jade -> html 需要监听转换的jade文件路径
jadeTohtml: "./src/view/main/*.jade",
// html 输出的路径
jadeTodist: "./dist/"
},
styl: {
// 将 public/ 公共的 styl 文件直接编译在 dist/ 中生成对应的
stylTocssPublic: "./src/assets/css/public/*.styl",
cssToDist: "",
// 将 page/ 中 styl 编译合并
stylTocssPage: "./src/assets/css/layout.styl",
// styl 转换完成后,需要将多个文件合并成一个的文件名
stylToFileName: "main.css",
// css 输出的路径
stylTodist: "./dist/css/"
},
watch: {
// gulp 需要监听的文件路径当我们在src修改源码时gulp会动态编译输出到dist
watchFile: "src/**/*"
},
nodeService: {
// 访问ip
host: "http://127.0.0.1:",
// 访问端口
port: 1314,
default: "about.html",
// 提示信息
log: "app is run here: ",
// 是否开始自动打开浏览器功能取值truefalse
isOpenBrowser: false
}
};