-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fonts bundling in luigi core #120
Fix fonts bundling in luigi core #120
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the small typo, please also add public/SAP-icons.woff to .gitignore file
docs/application-setup.md
Outdated
@@ -70,7 +70,7 @@ $ mv src/index.html src/angular.html | |||
$ curl https://raw.githubusercontent.com/kyma-project/Luigi/master/core/examples/luigi-sample-angular/src/index.html > src/index.html | |||
$ curl https://raw.githubusercontent.com/kyma-project/Luigi/master/core/examples/luigi-sample-angular/src/assets/basicConfiguration.js > src/assets/sampleconfig.js | |||
$ sed 's/"src\/index.html"/"src\/angular.html"/g' angular.json > tmp.json && mv tmp.json angular.json | |||
$ sed 's/"src\/assets"/"src\/assets","src\/index.html", {"glob": "fundamental-ui.min.css", "input": "node_modules\/fundamental-ui\/dist","output": "\/fundamental-ui"}, {"glob": "fonts\/**","input": "node_modules\/fundamental-ui\/dist","output": "\/fundamental-ui"}, {"glob": "SAP-icons.*","input": "node_modules\/fundamental-ui\/dist","output": "\/fundamental-ui"}, {"glob": "**","input": "node_modules\/@kyma-project\/luigi-core", "output": "\/luigi-core"},{"glob": "**","input": "node_modules\/@kyma-project\/luigi-client","output": "\/luigi-client"}/g' angular.json > tmp.json && mv tmp.json angular.json | |||
$ sed 's/"src\/assets"/"src\/assets","src\/index.html", {"glob": "**","input": "node_modules\/@kyma-project\/luigi-core", "output": "\/luigi-core"},{"glob": "**","input": "node_modules\/@kyma-project\/luigi-client","output": "\/luigi-clien t"}/g' angular.json > tmp.json && mv tmp.json angular.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks that there is a typo, should be luigi-client
instead of luigi-clien t
…ix-fonts-bundling-in-Luigi-core # Conflicts: # core/examples/luigi-sample-angular/package-lock.json # core/package.json
* Remove all fundamental-ui imports in example app * Solve problem & change non-working fallback css loader * Update documentation according to changes in angular.json file * Fix typo & add font file to .gitignore
Description
Fundamental UI icons now work independently from client app.
Changes proposed in this pull request:
css
file providing previously bugged @font-face rule. It's not affected by Svelte.style-loader
inwebpack.config.js
tofile-loader
(which works!).Resolves #88