MM-14575: Automatically serve static files for plugins (#33)
* MM-14575: Automatically serve static files for plugins * Added sample public file * Added HAS_PUBLIC to Makefile to test for public folder * Added "static_files" config setting * MM-14575: Removing static_files from plugin.json * MM14575: Moving public folder to bundle root * MM14575:Moving public directory to root
This commit is contained in:
parent
63f5322e4e
commit
0e863452cc
3 changed files with 7 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -100,6 +100,9 @@ bundle:
|
|||
ifneq ($(wildcard $(ASSETS_DIR)/.),)
|
||||
cp -r $(ASSETS_DIR) dist/$(PLUGIN_ID)/
|
||||
endif
|
||||
ifneq ($(HAS_PUBLIC),)
|
||||
cp -r public/ dist/$(PLUGIN_ID)/
|
||||
endif
|
||||
ifneq ($(HAS_SERVER),)
|
||||
mkdir -p dist/$(PLUGIN_ID)/server/dist;
|
||||
cp -r server/dist/* dist/$(PLUGIN_ID)/server/dist/;
|
||||
|
|
Reference in a new issue