-
Notifications
You must be signed in to change notification settings - Fork 3
/
.demosrc.js
35 lines (35 loc) · 1.74 KB
/
.demosrc.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
module.exports = {
devServer: {
port: 2333, //配置开发服务器的端口号,默认值3000
},
output: {
dir: 'docs', // 配置构建部署时输出的目录,默认dist目录
publicUrl: '.', // 配置构建输出的资源根目录,默认是'/'
html: {
title: 'Shader Playground'
}
},
// themeFile: 'demos/theme.scss',
staticFolder: 'static', // 配置静态资源文件路径,默认为 static
demoList: '.demoList.json', // demoList配置文件的文件名,默认为.demoList.json
name: 'Shader Playground', // 配置Playground的标题
version: 'v1', // 配置Playground的版本号信息
homePage: 'https://github.com/06wj/Shader-Playground', // 配置Playground链接跳转的主页
logo: '', // 配置Playground的LOGO,如果配置了LOGO,标题就不显示
boxTheme: 'monokai', // 配置代码编辑器的主题
// 可选主题: active4d, allHallowsEve, amy, blackboard, brillianceBlack,
// brillianceDull, chromeDevtools, cloudsMidnight, clouds, cobalt,
// dawn, dreamweaver, eiffel, espressoLibre, github, idle, katzenmilch,
// kuroirTheme, lazy, magicwbAmiga, merbivoreSoft, merbivore, monokai,
// pastelsOnDark, slushAndPoppies, solarizedDark, solarizedLight,
// spacecadet, sunburst, textmateMacClassic, tomorrowNightBlue,
// tomorrowNightBright, tomorrowNightEighties, tomorrowNight, tomorrow,
// twilight, vibrantInk, zenburnesque, iplastic, idlefingers, krtheme,
// monoindustrial,
globalPackages: { // 配置需要加载的 JS、CSS 库
js: [],
css: [],
},
// tab waterfall
editorViewMode: 'tab', // 配置代码块的UI展示方式,现在支持tab和waterfall两种展示方式
};