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.
tokarchuk/v1.17
silverwind 4 years ago committed by GitHub
parent e81edc02b9
commit 63aeb0a859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      Makefile
  2. 5144
      package-lock.json
  3. 3
      package.json

@ -623,7 +623,7 @@ docs:
cd docs; make trans-copy clean build-offline; cd docs; make trans-copy clean build-offline;
node_modules: package-lock.json node_modules: package-lock.json
npm install --no-save --no-optional npm install --no-save
@touch node_modules @touch node_modules
.PHONY: npm-update .PHONY: npm-update
@ -638,7 +638,7 @@ fomantic: $(FOMANTIC_DEST)
$(FOMANTIC_DEST): $(FOMANTIC_CONFIGS) | node_modules $(FOMANTIC_DEST): $(FOMANTIC_CONFIGS) | node_modules
@if [ ! -d node_modules/fomantic-ui ]; then \ @if [ ! -d node_modules/fomantic-ui ]; then \
npm install --no-save; \ npm install --no-save --no-package-lock fomantic-ui@2.8.7; \
fi fi
rm -rf $(FOMANTIC_DEST_DIR) rm -rf $(FOMANTIC_DEST_DIR)
cp -f web_src/fomantic/theme.config.less node_modules/fomantic-ui/src/theme.config cp -f web_src/fomantic/theme.config.less node_modules/fomantic-ui/src/theme.config

5144
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -52,9 +52,6 @@
"worker-loader": "3.0.5", "worker-loader": "3.0.5",
"wrap-ansi": "7.0.0" "wrap-ansi": "7.0.0"
}, },
"optionalDependencies": {
"fomantic-ui": "2.8.7"
},
"devDependencies": { "devDependencies": {
"eslint": "7.14.0", "eslint": "7.14.0",
"eslint-plugin-html": "6.1.1", "eslint-plugin-html": "6.1.1",

Loading…
Cancel
Save