summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-02-01 16:12:41 +0100
committerGitHub <noreply@github.com>2020-02-01 15:12:41 +0000
commit6dcf1106285e066a6dc8dff74ef809fc24301097 (patch)
treeef6b5458200c2370216e956e7e5d0fa39564be8f /Makefile
parent3ccd271081f45a6950a058e800cd9efbfae36cad (diff)
downloadgitea-6dcf1106285e066a6dc8dff74ef809fc24301097.tar.gz
gitea-6dcf1106285e066a6dc8dff74ef809fc24301097.zip
enable babel-loader cache (#10083)
this speeds up repeated webpack builds by around 20%. It will use the default cache directory `node_modules/.cache/babel-loader`. Also added cache invalidation to workaround https://github.com/babel/babel-loader/issues/690
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b3c54dd957..360939321b 100644
--- a/Makefile
+++ b/Makefile
@@ -509,7 +509,7 @@ $(FOMANTIC_DEST_DIR): semantic.json web_src/fomantic/theme.config.less | node_mo
.PHONY: webpack
webpack: node-check $(WEBPACK_DEST)
-$(WEBPACK_DEST): $(WEBPACK_SOURCES) | node_modules
+$(WEBPACK_DEST): $(WEBPACK_SOURCES) webpack.config.js | node_modules
npx eslint web_src/js webpack.config.js
npx stylelint web_src/less
npx webpack --hide-modules --display-entrypoints=false