Skip to content

Commit

Permalink
prevents webpack to delete css after they have been built
Browse files Browse the repository at this point in the history
  • Loading branch information
smirolo committed Aug 4, 2021
1 parent 0a6b08f commit 54f8fdb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Expand Up @@ -158,11 +158,13 @@ $(installTop)/.npm/djaoapp-packages: $(srcDir)/package.json
[ -f $(SASSC) ] || (cd $(binDir) && ln -s ../node_modules/.bin/sass sassc)
touch $@

build-assets: $(ASSETS_DIR)/cache/base.css \
# webpack will remove all files in the cache folder so we build the Javascript
# bundle before the css files.
build-assets: $(ASSETS_DIR)/cache/djaodjin-vue.js \
$(ASSETS_DIR)/cache/base.css \
$(ASSETS_DIR)/cache/email.css \
$(ASSETS_DIR)/cache/dashboard.css \
$(ASSETS_DIR)/cache/pages.css \
$(ASSETS_DIR)/cache/djaodjin-vue.js
$(ASSETS_DIR)/cache/pages.css

$(ASSETS_DIR)/cache/djaodjin-vue.js: $(installTop)/.npm/djaoapp-packages \
$(ASSETS_DIR)/js/djaoapp-i18n.js
Expand Down

0 comments on commit 54f8fdb

Please sign in to comment.