Skip to content

[bug?] Webpack aliases being ignored. #410

@trusktr

Description

@trusktr

I have an alias like this in webpack.config.js:

            'common': path.resolve(__dirname, '..', '..', 'common'),

and I have import statements like these in my .scss files:

@import "common/scss/colors";

but it doesn't work.

If I change it to

@import "../../common/scss/colors";

just like what the Webpack alias defines, then it works!

I can work around the problem by making my own loader, and modifying the @imports to have the unaliased strings, but that's obviously not desirable.

Possibly related: #173

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions