feat: spritemap is on cache?
See original GitHub issueHi! 👋 I use this plugin with the latest version of webpack
(>=5.0.0
)…it works very well!..
but every time I save a file other than a .svg
extension a spritemap is generated again…it seems that the final bundle is not in cache. What happens with the .scss
& .js
files instead (the first two modules are cached as you can see from the screenshot)
Here is my configuration:
new SVGSpritemapPlugin('src/svg/**/*.svg', {
output: {
filename: 'svg/spritemap.svg'
},
sprite: {
prefix: 'icon-',
generate: {
title: false
}
}
});
I forgot any settings? Thanks 😊
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Add cachebusting to generated spritename · Issue #37 - GitHub
The problem with timestamping is that it means that each time you build the spritesheet, you invalidate the cache. If you hash by...
Read more >Styleable Inline SVG Icons, with Caching & Fallback
A fairly simple, inline, styleable SVG sprite system for icons, with caching and fallback.
Read more >How does SKTexture caching and reuse work in SpriteKit?
Two features: The texture's bulky image data is cached by SpriteKit until SpriteKit feels like getting rid of it. According to the SKTexture ......
Read more >EaselJS v1.0.0 API Documentation : DisplayObject - CreateJS
It defines the core properties and methods that are shared between all display objects, such as transformation properties (x, y, scaleX, scaleY, etc),...
Read more >Optimising SVG load with Service Worker - Blog - Clicktorelease
Let's start writing the SW code in another file, service-worker.js. First step of the SW, specify the files to cache when installing, by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
These changes were included in
3.8.0
, thanks once more for reporting the issue! 🚀Good to hear! I’m aiming to combine this together with the fix for #135 in the next release. I’ll post a comment in both issues when the release is available ✌🏼