forked from CometVisu/CometVisu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
33 lines (31 loc) · 1.71 KB
/
build.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
({
//optimize: 'none', // only for debug
baseUrl: './',
appDir: 'src/', // relative to baseUrl
dir: 'release/',
mainConfigFile: 'src/lib/templateengine.js',
//optimize: 'none', // don't minimize when set
// config options to handle required CSS files:
separateCSS: true,
buildCSS: false,
paths: {
'css-builder': '../../../_support/css-builder',
'normalize': '../../../_support/normalize'
},
modules: [
// the main application
{ name: 'lib/templateengine', include: ['css'] },
// optimize the plugins
{ name: 'plugins/calendarlist/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/clock/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/colorchooser/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/diagram/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/gauge/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/rss/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/rsslog/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/strftime/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/svg/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/timeout/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] },
{ name: 'plugins/upnpcontroller/structure_plugin', exclude: ['structure_custom', 'css', 'normalize'] }
]
})