Compatibility with webpack-manifest-plugin
See original GitHub issueWhen I use this with webpack-manifest-plugin, my manifest ends up like so: With these options:
{
extract: true,
spriteFilename: 'sprites.svg',
}
I get:
{
"Museo300-Regular-webfont.woff": "2646113a1f5c5ca4728b05d88b276e1e.woff",
"hero-sample.jpg": "227cbd423e001d2649e678848b207cc8.jpg",
"index.css": "index.de42babf90fb3ab19717.css",
"index.js": "index.de42babf90fb3ab19717.js",
"sprites.svg.svg": "sprites.svg"
}
What I want to see (as you can see I’m getting from file-loader, etc) is:
{
"sprites.svg": "sprites.a939c9b13b21cd05a5e796ab6ba41769.svg"
}
So there’s 2 issues.
- The key is getting a duplicate .svg appended
- I want a
source: hashed
pair in manifest. I suppose for that you might need another option likechunkSpriteFilename
. that you could set to 'sprites.[hash].svg`
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:14 (2 by maintainers)
Top Results From Across the Web
webpack-manifest-plugin - npm
A Webpack Plugin for generating Asset Manifests. Latest version: 5.0.0, last published: 10 months ago. Start using webpack-manifest-plugin ...
Read more >webpack-manifest-plugin versions and peer dependencies
Online Peer dependency version tool to search for compatible versions of related NPM packages.
Read more >webpack-manifest-plugin | Yarn - Package Manager
A lot of webpack plugins are not yet updated to match the new webpack 5 API. This is a problem when other plugins...
Read more >[New to webpack]autoprefix problem with webpack manifest ...
I tried to use webpack manifest plugin to build manifest.json file that has keys and values of my assets with contenthash in its...
Read more >Upgrading Webpack 4 → 5 | Square Corner Blog
We use the webpack-manifest-plugin plugin to get a list of assets for ... For Webpack 5 compatibility, we replaced i18n-webpack-plugin with ...
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
@kisenka This issue has been addressed, but the other issue remains, so it still isn’t really usable with webpack-manifest…
The output of
manifest.json
is now something like:For it to be useful, we want something like this:
@kisenka could you please take a look at the PR? It’s been up for a while. This problem doesn’t allow me to setup correct sprite versioning on my project. 😦