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
I have an alias like this in webpack.config.js:
and I have import statements like these in my
.scssfiles:but it doesn't work.
If I change it to
just like what the Webpack alias defines, then it works!
I can work around the problem by making my own loader, and modifying the
@importsto have the unaliased strings, but that's obviously not desirable.Possibly related: #173