I'm migrating from Extjs 4.2 to Extjs 6.2. I used to include a custom css file in the head with a simple link placed after the inclusion of Extjs.
<link rel="stylesheet" href="/custom.css" type="text/css" charset="utf-8" />
This does not work anymore, because of the way Extjs 6 loads its css files. They are injected at the end of the head.
So how do I include a custom css file in ExtJs 6 in order to override built-in rules ?
Edit: Right, there are already some answers to this question, but
- https://stackoverflow.com/a/16682910/1951708 is about ExtJs 4.1
https://stackoverflow.com/a/25176803/1951708 gives some links, and this boils down to this:
copy the file custom.css to
/packages/local/custom-theme/sass/etc
- add the line
@import 'custom.scss'
toall.scss
So far so good, but:
- According to the documentation, the
sass/etc
folder is loaded before all the other styles - The content of my custom style sheet just does not get through all the build machinery and does not want to show up in my `build/production/[appname]/resources/[appname]-all.css