summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-30 00:16:04 +0100
committerGitHub <noreply@github.com>2020-11-30 01:16:04 +0200
commit63aeb0a859499623becc1d1e7c8a2ad57439e139 (patch)
tree280345490729af42840c1dbe1d06772bd9a7fa3d /Makefile
parente81edc02b9e93f625b9767386bbef6761f7bc291 (diff)
downloadgitea-63aeb0a859499623becc1d1e7c8a2ad57439e139.tar.gz
gitea-63aeb0a859499623becc1d1e7c8a2ad57439e139.zip
Fix webpack build warnings (#13752)
Turns out some of the dependencies make use of optional dependencies like the vue-template-compiler. Install them again and install fomantic-ui only when it's being build to fix webpack warnings.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7bf384c977..3464b6430a 100644
--- a/Makefile
+++ b/Makefile
@@ -623,7 +623,7 @@ docs:
cd docs; make trans-copy clean build-offline;
node_modules: package-lock.json
- npm install --no-save --no-optional
+ npm install --no-save
@touch node_modules
.PHONY: npm-update
@@ -638,7 +638,7 @@ fomantic: $(FOMANTIC_DEST)
$(FOMANTIC_DEST): $(FOMANTIC_CONFIGS) | node_modules
@if [ ! -d node_modules/fomantic-ui ]; then \
- npm install --no-save; \
+ npm install --no-save --no-package-lock fomantic-ui@2.8.7; \
fi
rm -rf $(FOMANTIC_DEST_DIR)
cp -f web_src/fomantic/theme.config.less node_modules/fomantic-ui/src/theme.config