-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Currently if you want to import a local CSS file you need to use syntax like this:
@import { url('~/your-style.css') }
This seems a bit silly because:
- There are technically no URLs for local files.
- The browser's @import does not require “url” (see https://developer.mozilla.org/en-US/docs/Web/CSS/@import)
- This syntax can mess up CSS tooling (see Minor css fix sample-Groceries#7)
I would like to request the syntax below to import a CSS file within my app:
@import { '~/your-style.css' }
Or even better drop the curly braces too:
@import '~your-style.css';
Thanks!