Closed lucalanca closed 7 years ago
I like! A little bonus could be to actually image-optim the favicon if there are any?
Ok, we discussed this topic a little bit further and here's the final proposal of this PR:
They should go under src/materials/icons
(or any other file).
They should get rev'd and their reference changed on both .css and .html files.
They should go under content/{images,videos,etc}
.
They should get rev'd and their reference changed on both .css and .html files.
They should go under src/meta
.
They never get rev'd and they will end up at the root of the build
folder.
Assets files
There are three types of files:
Content Assets
content/
.content/images
,content/videos
.build/assets/
. E.g.:content/images/content-image.svg
should be saved underbuild/assets/images/content-image.svg
).Design Assets
assets/
.assets/images/
,assets/videos
.build/assets/
. E.g.:assets/images/content-image.svg
should be saved underbuild/assets/images/design-image.svg
).Meta Assets
assets/meta
.build/
.What this PR does:
asset/:type
andcontent/:type
is allowed. E.g.:assets/images
andcontent/images
.I think this organisation is a more scalable solution that what we currently have. For more than once, I had the need to create a new stream for a new file type. With this, we don't need to do it. Furthermore, I think this is more maintainable as there exists only 1 stream for all assets (regardless if it is a "content asset " or a "design asset").