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

Subpath imports

Open kocv59 opened this issue 8 months ago • 2 comments

Add https://nodejs.org/api/packages.html#subpath-imports to package.json then in the main css file import @import "#cssfiles/includes.css. There will be a SyntaxError Failed to find '#cssfiles/includes.css'.

"imports": {
  "#cssfiles/*.css": "./cssfiles/*.css"
}

kocv59 avatar Apr 13 '25 19:04 kocv59

We depend on resolve for this functionality. The upstream issue can be followed here: https://github.com/browserify/resolve/issues/327

romainmenke avatar Apr 13 '25 20:04 romainmenke

Also related: https://github.com/postcss/postcss-import/issues/492

RyanZim avatar Jun 07 '25 18:06 RyanZim