eriklharper / postcss-nested-import

@import stylesheets inside nested CSS
MIT License
17 stars 7 forks source link

Not compatible with normal `postcss-import` URL references #9

Open mike-potter opened 1 year ago

mike-potter commented 1 year ago

We have this in our css file from when using the normal postcss-import plugin:

@import url('https://rsms.me/inter/inter.css');

When adding postcss-nested-import now we get an error on this line. Is there a way to use postcss-nested-import along with the postcss-import so we can have the nested import in selectors but not break the top-level imports that were working?

Maybe it would be better to change the "node" name being used in the plugin from the default import to something unique like import-nested so this plugin could be used only for the nested import and not worried about replicating the functionality of postcss-import?

revelt commented 1 year ago

hi Mike! I'm one of maintainers of this plugin. Thank you for raising this, I think we have enough info to start working. I'll keep you updated. If all goes well, if I can make it work on my local, I'll need your help to test it out.

wesleyboar commented 1 year ago

I might also be available to test. I ran into this blocker (after I begrudgingly updated my import path to move past #7).

Reminder to Self @wesleyboar, you had tested this plugin as a replacement for https://github.com/travco/postcss-extend, but this bug may have stopped you from continuing, but you don't see `nested-import` in your repos.
revelt commented 1 year ago

hi all, try v1 that has been just released, we renamed the handle to @nested-import

42tte commented 10 months ago

Fixed #11

EWhite613 commented 7 months ago

Is this issue closed with that fix?