-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.demosrc.js
64 lines (64 loc) · 3.53 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
var pkg = require('./package.json');
const pre = 'https://unpkg.com/'
const version = '1.x'
// const min = 'min.'
// const pre = 'http://127.0.0.1:8080/packages/evajs-cdn/cdn/'
const min = ''
module.exports = {
devServer: {
port: 3000, //配置开发服务器的端口号,默认值3000
},
output: {
dir: 'docs', // 配置构建部署时输出的目录,默认dist目录
html: {
title: 'EVA Playground',
},
},
staticFolder: 'static',
demoList: '.demoList.json', // demoList配置文件的文件名,默认为.demoList.json
name: 'EVA Playground', // 配置Playground的标题
version: `v${pkg.version}`,
homePage: 'https://eva.js.org/playground', // 配置Playground链接跳转的主页
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: [
'https://cdn.bootcdn.net/ajax/libs/eventemitter3/3.1.2/index.min.js',
'./stats.js',
'https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.15/lodash.min.js',
'//unpkg.com/[email protected]/dist/pixi.min.js',
'./showStats.js',
`${pre}@eva/eva.js@${version}/dist/EVA.${min}js`,
`${pre}@eva/renderer-adapter@${version}/dist/EVA.rendererAdapter.${min}js`,
`${pre}@eva/plugin-renderer@${version}/dist/EVA.plugin.renderer.${min}js`,
`${pre}@eva/plugin-renderer-img@${version}/dist/EVA.plugin.renderer.img.${min}js`,
`${pre}@eva/plugin-renderer-text@${version}/dist/EVA.plugin.renderer.text.${min}js`,
`${pre}@eva/plugin-renderer-dragonbone@${version}/dist/EVA.plugin.renderer.dragonbone.${min}js`,
`${pre}@eva/plugin-renderer-spine@${version}/dist/EVA.plugin.renderer.spine.${min}js`,
`${pre}@eva/plugin-renderer-spine38@${version}/dist/EVA.plugin.renderer.spine38.${min}js`,
`${pre}@eva/plugin-renderer-sprite@${version}/dist/EVA.plugin.renderer.sprite.${min}js`,
`${pre}@eva/plugin-renderer-sprite-animation@${version}/dist/EVA.plugin.renderer.spriteAnimation.${min}js`,
`${pre}@eva/plugin-renderer-tiling-sprite@${version}/dist/EVA.plugin.renderer.tilingSprite.${min}js`,
`${pre}@eva/plugin-renderer-render@${version}/dist/EVA.plugin.renderer.render.${min}js`,
`${pre}@eva/plugin-renderer-nine-patch@${version}/dist/EVA.plugin.renderer.ninePatch.${min}js`,
`${pre}@eva/plugin-renderer-graphics@${version}/dist/EVA.plugin.renderer.graphics.${min}js`,
`${pre}@eva/plugin-renderer-event@${version}/dist/EVA.plugin.renderer.event.${min}js`,
`${pre}@eva/plugin-renderer-mask@${version}/dist/EVA.plugin.renderer.mask.${min}js`,
`${pre}@eva/plugin-renderer-lottie@${version}/dist/EVA.plugin.renderer.lottie.${min}js`,
`${pre}@eva/plugin-transition@${version}/dist/EVA.plugin.transition.${min}js`,
`${pre}@eva/plugin-matterjs@${version}/dist/EVA.plugin.renderer.matterjs.${min}js`,
],
css: [],
},
// tab waterfall
editorViewMode: 'tab', // 配置代码块的UI展示方式,现在支持tab和waterfall两种展示方式
};