posthtml-postcss-modules
posthtml-postcss-modules copied to clipboard
Support relative imports
Consider the following structure:
index.html
header
|--header.html
|--header.css
index.html
<include src="./header/header.html"></include>
header/header.html
<link href="./header.css" module>
Build will fail. I tried to solve this with __dirname hacks in posthtml.config.js with no success.
It seems almost intuitive for this package to support relative paths like this. Please, consider implementing this functionality because this is the only thing that stops me from adopting this package all over everything I do.
Thanks!
P.S. I'm using posthtml-include for includes. This is my config:
"posthtml-include": {
root: path.join(__dirname, './src')
}
@stevenvachon Hi, great suggestion, I'll take it as soon as possible. You can feel free to contribute