1
0
forked from MTSR/mapserver

include js bundle in output / ignore "node_modules" in embedfs

fixes #170
This commit is contained in:
BuckarooBanzay 2021-04-27 16:34:55 +02:00
parent fbd0a6190d
commit 761efab64e
3 changed files with 10 additions and 2 deletions

View File

@ -15,7 +15,7 @@ BINARIES += $(OUT_DIR)/mapserver-linux-arm
JS_BUNDLE = public/js/bundle.js
all: $(OUT_DIR)/mapserver-linux-x86_64
all: $(JS_BUNDLE) $(OUT_DIR)/mapserver-linux-x86_64
$(OUT_DIR):
mkdir $@

1
public/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

View File

@ -2,5 +2,12 @@ package public
import "embed"
//go:embed *
//go:embed colors/*
//go:embed css/*
//go:embed pics/*
//go:embed sql/*
//go:embed webfonts/*
//go:embed *.html
//go:embed *.txt
//go:embed js/*
var Files embed.FS