Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builds manifest #44

Open
sveetch opened this issue Feb 27, 2023 · 0 comments
Open

Builds manifest #44

sveetch opened this issue Feb 27, 2023 · 0 comments

Comments

@sveetch
Copy link
Owner

sveetch commented Feb 27, 2023

Is your feature request related to a problem? Please describe.
Purpose of this feature would be to create a JSON file of built files from a compilation alike webpack-bundle-tracker does for Webpack.

Describe the solution you'd like
Every time a compilation is performed, the compiler should write a file like boussole-stats.json into the target directory (as defined from settings) which would list every built CSS file item.

File item may contains some information like the main Sass source (as a relative path from source dir) it comes from, the filename, maybe the file size, its relative (to the target dir) path and possibly the absolute file path.

Additional context

It would help developer to integrate CSS built assets into their project with a little bit of code into an asset manager.

Also since the new feature HASH_SUFFIX, the built filenames can change on every compile. file.scss won't render just to file.css but to file.3f91ee4f01a2081b6127.css, then file.18e67c22d578d32b07e3.css, etc..

It can not be simply included anymore with file.css, this manifest would help to include it without to modify template each time a compile has been done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant