postcss-import
postcss-import copied to clipboard
Subpath imports
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"
}
We depend on resolve for this functionality.
The upstream issue can be followed here: https://github.com/browserify/resolve/issues/327
Also related: https://github.com/postcss/postcss-import/issues/492