1 | module.exports = function(env) {
|
2 | return {
|
3 | devServer: {
|
4 | port: 3000,
|
5 | },
|
6 | output: {
|
7 | dir: 'docs',
|
8 | publicUrl: '.',
|
9 | },
|
10 | staticFolder: 'static',
|
11 | demoList: env === 'development' ? '.demoList.dev.json': '.demoList.prod.json',
|
12 | name: 'DEMOSIFY',
|
13 | version: 'v1',
|
14 | homePage: 'https://spritejs.org',
|
15 | logo: '',
|
16 | // 可选主题: active4d, allHallowsEve, amy, blackboard, brillianceBlack,
|
17 | // brillianceDull, chromeDevtools, cloudsMidnight, clouds, cobalt,
|
18 | // dawn, dreamweaver, eiffel, espressoLibre, github, idle, katzenmilch,
|
19 | // kuroirTheme, lazy, magicwbAmiga, merbivoreSoft, merbivore, monokai,
|
20 | // pastelsOnDark, slushAndPoppies, solarizedDark, solarizedLight,
|
21 | // spacecadet, sunburst, textmateMacClassic, tomorrowNightBlue,
|
22 | // tomorrowNightBright, tomorrowNightEighties, tomorrowNight, tomorrow,
|
23 | // twilight, vibrantInk, zenburnesque, iplastic, idlefingers, krtheme,
|
24 | // monoindustrial,
|
25 | boxTheme: 'monokai',
|
26 | globalPackages: {
|
27 | js: ['https://unpkg.com/spritejs@2/dist/spritejs.min.js'],
|
28 | css: [],
|
29 | },
|
30 | // tab waterfall
|
31 | editorViewMode: 'tab',
|
32 | editorLayout: 'normal'
|
33 | };
|
34 | };
|