Skip to content

billyjanitsch/webpack-bug-emit-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack asset hash emit bug

This repository provides a repro for the following webpack bug. When module.rule.generator.emit is set to false for asset resources, webpack is supposed to emit the same filename as when it's set to true. This doesn't work correctly if there's an image minimizer in the chain, presumably because the minifier is only running when {emit: true} and ends up influencing the asset hash.

Note that this reproduces regardless of the asset filename, e.g., setting it to something like [contenthash][ext] does not fix the issue.

Instructions

A failing test case can be run as follows:

$ npm install
$ npm test

See the test file for details.

About

Repro for a webpack bug involving asset hashes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published