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
to
paths, like webpack's file-loader. - Improved performance by reading files concurrently. Before, we used Bluebird's
each()
to process files, now we usemap()
. Theconcurrency
option 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.readFileSync
isn't used to load file contents into webpack's compilation.assets anymore. - Handle edge case for webpack-dev-server where absolute
to
couldn't be written.
Breaking changes
- Ignore globs also ignore dotted files by default.