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

How to use tsconfig "alias" in .css, .scss, .vue files ? #237

Open
ffixitt opened this issue Dec 1, 2024 · 2 comments
Open

How to use tsconfig "alias" in .css, .scss, .vue files ? #237

ffixitt opened this issue Dec 1, 2024 · 2 comments

Comments

@ffixitt
Copy link

ffixitt commented Dec 1, 2024

Is there any possible way to use tsconfig.compilerOptions.paths like alias for other file types like .css, .scss, .vue. For Js & Ts everything works well, but not for the rest. I have to create path-intellisense.mappings settings for each project separately... and it's not very convenient.

I would be grateful for any hint or help 🙏.

@ChristianKohler
Copy link
Owner

We would have to respect the alias config of the css pre processor. This is different from for example Webpack to Vite.

I clearly see the value of doing it but would need to figure out a good way to add support for the most common bundlers.

How does the config look like in your project?

@ffixitt
Copy link
Author

ffixitt commented Dec 7, 2024

How does the config look like in your project?

If you are asking about tsconfig, this is the nuxt project config that is generated automatically by nuxi ...

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