Skip to content
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

Merged

Conversation

parostatkiem-zz
Copy link
Contributor

@parostatkiem-zz parostatkiem-zz commented Oct 2, 2018

Description
Fundamental UI icons now work independently from client app.
Changes proposed in this pull request:

  • Remove all Luigi Core imports in Example Angular App
  • Add static css file providing previously bugged @font-face rule. It's not affected by Svelte.
  • Change non-working css fallback processor style-loader in webpack.config.js to file-loader (which works!).

Resolves #88

Copy link
Contributor

@jesusreal jesusreal left a 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

@@ -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
Copy link
Contributor

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
@parostatkiem-zz parostatkiem-zz merged commit 106403a into SAP:master Oct 12, 2018
@parostatkiem-zz parostatkiem-zz deleted the Fix-fonts-bundling-in-Luigi-core branch November 28, 2018 08:27
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants