webpack-dev-middleware
Advanced tools
Changelog
4.0.0-rc.0 (2020-02-19)
output.path
and output.publicPath
options from the configurationstats
option from the configurationwatchOptions
option from the configurationwriteToDisk
option now correctly works in multi-compiler modeoutputFileSystem
option now correctly works in multi-compiler mode[hash]
/[fullhash]
in output.path
and output.publicPath
Content-Type
header doesn't have charset=utf-8
value for custom MIME types and MIME types which can be non utf-8
webpack
loggermemfs
package10.13.0
publicPath
is taken from the value of the output.publicPath
option from the configuration (webpack.config.js
)stats
option was removed, the default value of the stats
option is taken from the value of the stats
option from the configuration (webpack.config.js
)watchOptions
was removed, the default value of the watchOptions
option is taken from the value of the watchOptions
option from the configuration (webpack.config.js
)Content-Type
header doesn't have charset=utf-8
value for custom MIME types and MIME types which can be non utf-8
fs
option was renamed to the outputFileSystem
optionlazy
option was removed without replacementlogger
, logLevel
and logTime
options were removed without replacement. You can setup the level
value using { infrastructureLogging: { level: 'warn' } }
, please read https://webpack.js.org/configuration/other-options/#infrastructurelogging. You can use the infrastructurelog
(infrastructureLog
in webpack@5
) hook to customize logs. The log
property in the middleware context was renamed to logger
mimeTypes
option first requires you to specify an extension and then a content-type - { mimeTypes: { phtml: 'text/html' } }
force
option from the mimeTypes
option was removed without replacementreporter
option was removed without replacementgetFilenameFromUrl
method was removed from the APIlocals
now under res.locals.webpack
- use res.locals.webpack.stats
for access stats
and res.locals.webpack.outputFileSystem
to access outputFileSystem