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

Add @insert "style.css" functionality #2342

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

alecroy
Copy link

@alecroy alecroy commented Dec 2, 2017

This adds a keyword like @import and @require that inserts the raw text of another file.

Paths are resolved relative to the file doing the importing.

This mostly resolves what #2155 was trying to solve. Hopefully this at least moves the discussion forward. I primarily just want to use this in my blog, so I've got a pretty specific usage and probably didn't capture every use case mentioned in that issue. Feel free to do what you want with this request.

Thanks !

This adds a keyword like @import and @require that inserts the raw text of another file.

Paths are resolved relative to the file doing the importing.
@iChenLei
Copy link
Member

We need discussion this new feature.

@viT-1
Copy link

viT-1 commented Feb 1, 2022

How to solve alias paths without webpack loaders?
For example js with tsconfig solution

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

Successfully merging this pull request may close these issues.

None yet

3 participants