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

Make alias work with SASS imports #1174

Closed
MartinMalinda opened this issue Nov 30, 2020 · 1 comment
Closed

Make alias work with SASS imports #1174

MartinMalinda opened this issue Nov 30, 2020 · 1 comment

Comments

@MartinMalinda
Copy link

MartinMalinda commented Nov 30, 2020

There's a module alias for JS imports and it works great:

module.exports = {
  alias: {
   '/@/': path.resolve(__dirname, 'src')
  }
};
import Model from '/@/model';

But this does not work for SCSS imports:

@import "/@/variables.scss"
@underfin
Copy link
Member

underfin commented Dec 1, 2020

Please track here #650

@underfin underfin closed this as completed Dec 1, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants