12 Star 48 Fork 15

Firekylin/firekylin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
stc.view.config.js 998 Bytes
一键复制 编辑 原始数据 按行查看 历史
怡红公子 提交于 2018-02-11 22:05 . add rest file
var stc = require('stc');
var cssCompress = require('stc-css-compress');
// var resourceVersion = require('stc-resource-version');
var localstorage = require('stc-localstorage');
var localstorageAdapter = require('stc-localstorage-nunjucks');
var cssCombine = require('stc-css-combine');
// var htmlCompress = require('stc-html-compress');
stc.config({
product: 'firekylin.view',
include: ['www/theme/firekylin.build/html', 'www/theme/firekylin/res'],
exclude: [],
outputPath: 'output.theme',
tpl: {
engine: 'nunjucks',
ld: ['{%', '{{', '{#'],
rd: ['%}', '}}', '#}'],
}
});
stc.workflow({
cssCombine: {plugin: cssCombine, include: /\.css$/},
cssCompress: {plugin: cssCompress},
localstorage: {
include: {type: 'tpl'},
plugin: localstorage,
options: {
adapter: localstorageAdapter,
minLength : 200,
appId : '3e988cdb'
}
},
// htmlCompress: {plugin: htmlCompress}
// resourceVersion: {plugin: resourceVersion}
});
stc.start();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/firekylin/firekylin.git
git@gitee.com:firekylin/firekylin.git
firekylin
firekylin
firekylin
master

搜索帮助