Skip to content
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

Webpack aliases not working with @import #226

Closed
Tux1 opened this issue Mar 19, 2016 · 4 comments
Closed

Webpack aliases not working with @import #226

Tux1 opened this issue Mar 19, 2016 · 4 comments

Comments

@Tux1
Copy link

Tux1 commented Mar 19, 2016

Hi,

It seems I found a bug with webpack aliases import. Even if you specify a alias correctly, sass-loader doesn't find the file and throw an compilation error.

I made a simple project to help :
https://github.com/Tux1/examplesasserror

@Tux1
Copy link
Author

Tux1 commented Mar 20, 2016

The ~ was missing in the @import instruction

@Tux1 Tux1 closed this as completed Mar 20, 2016
@xiaoyunchen
Copy link

Hi,I got the same problem #225
could u please me a sample of @import

@Tux1
Copy link
Author

Tux1 commented Mar 20, 2016

I don't think that it's the same issue.
In my case, I have to prepend the path with ~ when I use webpack alias.
For example, I have the alias : assets: '/app/assets/' so when I want to import a file in assets I have to do that : `@import "~assets/toto.scss"

@xiaoyunchen
Copy link

so any suggestion about #225 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants