v4.0.0-rc.0
alexander-akait
released this
19 Feb 12:03
·
1081 commits
to master
since this release
4.0.0-rc.0 (2020-02-19)
Bug Fixes
- respect
output.path
andoutput.publicPath
options from the configuration - respect the
stats
option from the configuration - respect the
watchOptions
option from the configuration - the
writeToDisk
option now correctly works in multi-compiler mode - the
outputFileSystem
option now correctly works in multi-compiler mode - respect
[hash]
/[fullhash]
inoutput.path
andoutput.publicPath
- handle exceptions for filesystem operations
- the
Content-Type
header doesn't havecharset=utf-8
value for custom MIME types and MIME types which can be nonutf-8
Features
- validate options
- migrate on the
webpack
logger - migrate on the
memfs
package - improve performance
BREAKING CHANGES
- minimum supported Node.js version is
10.13.0
- the default value of the option
publicPath
is taken from the value of theoutput.publicPath
option from the configuration (webpack.config.js
) - the
stats
option was removed, the default value of thestats
option is taken from the value of thestats
option from the configuration (webpack.config.js
) - the
watchOptions
was removed, the default value of thewatchOptions
option is taken from the value of thewatchOptions
option from the configuration (webpack.config.js
) - the
Content-Type
header doesn't havecharset=utf-8
value for custom MIME types and MIME types which can be nonutf-8
- the
fs
option was renamed to theoutputFileSystem
option - the
lazy
option was removed without replacement - the
logger
,logLevel
andlogTime
options were removed without replacement. You can setup thelevel
value using{ infrastructureLogging: { level: 'warn' } }
, please read https://webpack.js.org/configuration/other-options/#infrastructurelogging. You can use theinfrastructurelog
(infrastructureLog
inwebpack@5
) hook to customize logs. Thelog
property in the middleware context was renamed tologger
- the
mimeTypes
option first requires you to specify an extension and then a content-type -{ mimeTypes: { phtml: 'text/html' } }
- the
force
option from themimeTypes
option was removed without replacement - the
reporter
option was removed without replacement - the
getFilenameFromUrl
method was removed from the API - the middleware
locals
now underres.locals.webpack
- useres.locals.webpack.stats
for accessstats
andres.locals.webpack.outputFileSystem
to accessoutputFileSystem