postcss-nested-import icon indicating copy to clipboard operation
postcss-nested-import copied to clipboard

Not compatible with normal `postcss-import` URL references

Open mike-potter opened this issue 2 years ago • 5 comments

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?

mike-potter avatar Sep 23 '22 22:09 mike-potter

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.

revelt avatar Sep 24 '22 10:09 revelt

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.

wesleyboar avatar Jan 18 '23 23:01 wesleyboar

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

revelt avatar Apr 17 '23 07:04 revelt

Fixed #11

42tte avatar Aug 25 '23 05:08 42tte

Is this issue closed with that fix?

EWhite613 avatar Dec 14 '23 15:12 EWhite613