Join GitHub today
ToCSS includePaths ignores paths from parent directory (../node_modules) #6274
Project Structure (abridged)
project ├── node_modules │ └── bulma │ ├── bulma.sass │ └── sass │ └── ... ├── package.json ├── package-lock.json ├── README.md └── site └── themes └── custom-theme ├── assets │ └── scss │ ├── main.scss │ └── variables.scss └── layouts └── _default └── baseof.html
This is possibly a bug introduced by my 0.57 changes. That said, I think you would get a simpler setup/easier to reason about if you use the new module mounts setup.
E.g. (from memory):
If you get those paths in line you should not need to add any
@bep Thanks I was looking into it and it does indeed look like the introduction of modules might have interfered with this feature. You suggestions to use modules (which is a really cool new feature btw) works!
Specfically (and for anyone stumbling upon this) the corrrect configuration is:
[module] [[module.mounts]] source = "static" target = "static" [[module.mounts]] source = "../node_modules/bulma" target = "assets/scss/bulma"
I had to mount the
For me this is a perfectly acceptable solution. I find it much cleaner and explicit than passing the
I agree. It would be cool if you could lend us a hand, now that you know how it works... But I will fix this particular issue, as this was an unintended side effect. But I do agree that using the file mounts is a cleaner and easier to reason about solution. And it gets even cooler when you mount folders inside other GitHub projects ...