I have a site with 50+ blocks registered. The structure I have is that all block files are found in /views/blocks/block-name/
. Each folder contains the PHP template and scss file for each blocks. What I’d like to to is import all the scss files - using a wildcard in the blocks folder to grab all the .scss files fromeach blocks folder and compile into app.css.
So far, I’ve tried:
app
.setPath('@blocks', './resources/views/blocks/*')
/**
* Application entrypoints
*/
.entry({
app: ["@scripts/app", "@styles/app"],
editor: ["@scripts/editor", "@styles/editor"],
blocks: ["@blocks/*"]
})
Which doesn’t work, and:
assets(["images","views/blocks/**/*"])
… seems to load php files and everything into the compilation.
Has anyone else had experience picking out scss from a bunch of wildcarded folders?