Skip to content

CSS @import: Make url optional for local files #612

Closed

Description

@tjvantoll

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:

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!

Activity

  1. self-assigned this
    on Aug 24, 2015
  2. added this to the 1.3.0 milestone on Aug 25, 2015
  3. lock commented on Aug 31, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked and limited conversation to collaborators on Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions