forked from MTSR/mapserver
include js bundle in output / ignore "node_modules" in embedfs
fixes #170
This commit is contained in:
parent
fbd0a6190d
commit
761efab64e
2
Makefile
2
Makefile
@ -15,7 +15,7 @@ BINARIES += $(OUT_DIR)/mapserver-linux-arm
|
|||||||
|
|
||||||
JS_BUNDLE = public/js/bundle.js
|
JS_BUNDLE = public/js/bundle.js
|
||||||
|
|
||||||
all: $(OUT_DIR)/mapserver-linux-x86_64
|
all: $(JS_BUNDLE) $(OUT_DIR)/mapserver-linux-x86_64
|
||||||
|
|
||||||
$(OUT_DIR):
|
$(OUT_DIR):
|
||||||
mkdir $@
|
mkdir $@
|
||||||
|
1
public/.gitignore
vendored
Normal file
1
public/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
@ -2,5 +2,12 @@ package public
|
|||||||
|
|
||||||
import "embed"
|
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
|
var Files embed.FS
|
||||||
|
Loading…
Reference in New Issue
Block a user