question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: spritemap is on cache?

See original GitHub issue

Hi! 👋 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)

hero-cli-spritemap-cache

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
cascornelissencommented, Dec 10, 2020

These changes were included in 3.8.0, thanks once more for reporting the issue! 🚀

2reactions
cascornelissencommented, Dec 8, 2020

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 ✌🏼

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found