gowebbuild/sample.gowebbuild.json

52 lines
1.1 KiB
JSON
Raw Permalink Normal View History

{
"Watch": {
"Paths": [ "./frontend/src" ],
2022-02-01 17:15:14 +01:00
"Exclude": [ "./dist" ]
},
"Copy": [
{
"Src": "./frontend/index.html",
"Dest": "./api/frontend-dist"
},
{
"Src": "./frontend/src/audio",
"Dest": "./api/frontend-dist/audio"
},
{
"Src": "./frontend/src/icon-*.png",
"Dest": "./api/frontend-dist"
},
{
"Src": "./frontend/src/manifest.webmanifest",
"Dest": "./api/frontend-dist"
},
{
"Src": "./frontend/src/workbox-config.js",
"Dest": "./api/frontend-dist"
}
],
"Replace": [
{
"Pattern": "*.go|*.js|*.html",
"Search": "Something",
"Replace": "This"
}
],
"ESBuild": {
"EntryPoints": [
"./frontend/src/the-app.js",
"./frontend/src/serviceworker.js"
],
"Outdir": "./api/frontend-dist",
"Sourcemap": 1,
"Format": 3,
"Splitting": true,
"Platform": 0,
"Bundle": true,
"Write": true,
"LogLevel": 3
},
"ProductionBuildOptions": {
"CmdPostBuild": "my-build-script.sh"
}
}