4.0.0
This is a rewrite to add several new features.
Features
- Debug mode can be enabled with 3 options:
warning(default),info, ordebug. - Transform method can modify the contents of a file before writing it.
- Warn on missing file or directory. Use the NoErrorsPlugin if you want this to fail the build.
- Allow name templates in
topaths, like webpack's file-loader. - Improved performance by reading files concurrently. Before, we used Bluebird's
each()to process files, now we usemap(). Theconcurrencyoption is exposed if you'd like to override the default of 100 parallel files.
Bug fixes
- Allow graceful-fs to patch EMFILE/ENFILE issues.
fs.readFileSyncisn't used to load file contents into webpack's compilation.assets anymore. - Handle edge case for webpack-dev-server where absolute
tocouldn't be written.
Breaking changes
- Ignore globs also ignore dotted files by default.