Move html sources into /src/

This commit is contained in:
Alex Dima 2021-11-13 19:40:20 +01:00
parent d2a70a52f5
commit a8df4018f1
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
23 changed files with 80 additions and 304 deletions

View file

@ -186,7 +186,7 @@ exports.build = build;
*/
function buildESM(options) {
build({
entryPoints: options.entryPoints.map(e => (`${options.base}/${e}`)),
entryPoints: options.entryPoints.map((e) => `${options.base}/${e}`),
bundle: true,
target: 'esnext',
format: 'esm',
@ -260,7 +260,9 @@ function buildOneAMD(type, options) {
},
globalName: 'moduleExports',
banner: {
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || []).map(dep => (`"${dep}"`)).join(',')}],()=>{`
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || [])
.map((dep) => `"${dep}"`)
.join(',')}],()=>{`
},
footer: {
js: 'return moduleExports;\n});'
@ -315,7 +317,9 @@ function buildOneAMD2(type, options) {
},
globalName: 'moduleExports',
banner: {
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || []).map(dep => (`"${dep}"`)).join(',')}],()=>{`
js: `${bundledFileHeader}define("${options.amdModuleId}",[${(options.amdDependencies || [])
.map((dep) => `"${dep}"`)
.join(',')}],()=>{`
},
footer: {
js: 'return moduleExports;\n});'