-
-
Notifications
You must be signed in to change notification settings - Fork 608
Using webpack resolve.alias #571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Finally, I have not found the solution... |
Any suggestion ? |
@Tux1 Can your provide minimum reproducible test repo? |
@Tux1, @evilebottnawi, Hello! I have similar problem for webpack 3 aliases and last css-loader with modules mode. Did you find any solution for this issue? My config has same view: https://gist.github.com/RuBAN-GT/ede72a6d56e8aeace34b16cccece7ab7 |
@RuBAN-GT it seems that you have missed the style extensions in you resolve config. |
@kud problem also resolve: {
alias: {
'~': `${SRC_DIR}`,
}
}, It could be great if I was directly able to do: .test {
composes: base from '~/file.css';
} without having to define aliases for css-loader. |
Rolling back to |
looks like you used css module, delete ~ will be ok |
aliases break as soon as you try to use |
Dupplicate #282 |
Hi,
css-loader doesn't manage to resolve some file from path using webpack resolve.alias.
I saw that there is an option to create css-loader aliases with
alias
option. But is it possible to use directly webpack resolve.alias ?It was perfectly working with webpack 1 and
css-loader
0.26.0
but since I have updated my packages, it is broken.Webpack config:
Log :
Thanks !
The text was updated successfully, but these errors were encountered: