-
Notifications
You must be signed in to change notification settings - Fork 390
/
stc.view.config.js
37 lines (34 loc) · 998 Bytes
/
stc.view.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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();