Skip to content

Handle CSS imports correctly #138

Closed
Closed
@jhnns

Description

@jhnns

node-sass treats CSS imports this way:

If a file ending is provided...

...the import statement stays untouched, but the file contents are not included:

@import "./some-css-module.css";

becomes

@import url(./some-css-module.css);

If no file ending is provided...

...it is treated as scss and included.

The sass-loader should treat it the same way. Currently the sass-loader outputs an absolute path to the CSS file which is pretty useless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions