Hello guys, there is any way to disable the styl css files?
I’ve already removed the ‘app.styl’ from quasar.conf.js but the ‘quasar.mat.styl’ is still being included when the pages loads.
There is no description how to do it on the documentation and I feel like the usage of such thing as Stylus should be optional and easily enabled and disabled from quasar.conf.js.
Best posts made by andrewl94
-
How to Disable Stylus
Latest posts made by andrewl94
-
RE: How to Disable Stylus
Yea, but I have the need to override styles that I did not needed there on the first place.
-
RE: How to Disable Stylus
But the default stylus for mat/ios will still be applied, right?
I dont know if I was clear, but the main problem i’m facing is that the current css for mat/ios is messing with my own css, and since the stylus has priority when the page is loaded, I had 2 options:1 - The ugly one: The script above
2 - The time unecessary time consuming : rewrite the css on stylus and making adaptations because of the default stylusI was searching for a 3rd one: disabling the insertion of this style i removed with option 1
-
RE: How to Disable Stylus
This is my current code to remove the insertion of the style from stylus mat/ios (and is atrocious the need of this kind of script to do that imo):
<script type=“text/javascript”>
window.onload = function(){
var tag = document.getElementsByTagName(“style”);
var searchText = “Edit /src/css/themes instead”;
for (var i = 0; i < tag.length; i++) {
if (tag[i].innerHTML.indexOf(searchText) !== -1) {
tag[i].remove()
break;
}
}
}
</script> -
RE: How to Disable Stylus
Welp, I still had not found a good way to disable it.
Anyone has any clue how to do it?
-
How to Disable Stylus
Hello guys, there is any way to disable the styl css files?
I’ve already removed the ‘app.styl’ from quasar.conf.js but the ‘quasar.mat.styl’ is still being included when the pages loads.
There is no description how to do it on the documentation and I feel like the usage of such thing as Stylus should be optional and easily enabled and disabled from quasar.conf.js.