Google Font's @import statenent is breaking after compiling from SCSS to CSS
See original GitHub issue- Laravel Mix Version: 5.0.4
- Node Version: 12.16.3
- NPM Version: 6.14.4
- OS:
Description:
The generated CSS breaks when SCSS has @import statement with ;
in url.
Steps To Reproduce:
I was importing google fonts in my SCSS file:
This statement below works
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');
This statement below BREAKS
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
The css generated with the above statement is like this.
@import url(https://fonts.googleapis.com/css2?family=Lora:wght@400;
700&display=swap);
Looks like ;
(semicolon) in the URL is seen as an end of the statement by the compiler.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:9
Top Results From Across the Web
Google Font's @import statenent is breaking after compiling ...
The generated CSS breaks when SCSS has @import statement with ; in url. Steps To Reproduce: I was importing google fonts in my...
Read more >error when importing local google fonts with sass new version
Since Sass is whitespace-sensitive (in contrast to scss), the previously used new lines seem to break parsing the src property.
Read more >Issues with Google fonts and Sass compile. - Laracasts
I'm trying to learn Laravel and I've run into an issue that I can't seem to figure out with Google Fonts and Sass....
Read more >font-face - CSS: Cascading Style Sheets - MDN Web Docs
Chrome Edge
@font‑face Full support. Chrome1. Toggle history Full support...
OpenType CBDT and CBLC rendering Full support. Chrome66. Toggle history Full support...
OpenType COLRv0 rendering Full...
Read more >Loading Fonts with webpack - Chris Courses
We're going to start with a basic webpack config that compiles SCSS down to CSS. Download the repo, install its dependencies (use yarn...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A workaround is to use “%3b” instead of “;” in your link
Workaround works but this shouldn’t be closed. Bug is still there.