alexander-akait
released this
4.0.0-beta.1 (2021-03-23)
⚠ BREAKING CHANGES
--hot-onlyoption was removed- default value of the
staticoption ispath.resolve(process.cwd(), 'public'), previouslypath.resolve(process.cwd(), 'static') - the
overlayoption was moved into theclientoption
Features
- add more negative flags -
--no-https,--no-http2,--no-compressand--no-history-api-fallback(#3070) (ebc966f) - allow
Booleantype for the--firewalloption (#3041) (6711c1d) - improve output for localhost and fix open (#2892) (9e65c24)
- improve output for IPv4 and IPv6 (#3092) (f362665)
Bug Fixes
- allow to open browser with
--open-page(#3032) (581ee07) - content security policy issue in client log (2de2e01)
- empty and multiple entries support (#2920) (45f6592)
- improve descriptions for CLI options (#3021) (7d339d4)
- improve descriptions for negative flags (#3029) (2e2190a)
- multi compiler mode with proxy (#2905) (247a92b)
- remove double brackets from the ws url when using raw IPv6 address (#2951) (2ec8160)
- show correct url in output status (#3013) (06b3d91)
- show detailed error in overlay (ba01b05)
- support
file:andchrome-extension:protocols in client (#2954) (163bdce) - warnings in overlay (#3054) (6144c8d)
- webpack-cli installation message (#2955) (b9ce07f)
Assets
2
alexander-akait
released this
Assets
2
alexander-akait
released this
3.11.1 (2020-12-29)
Bug Fixes
Assets
2
alexander-akait
released this
4.0.0-beta.0 (2020-11-27)
⚠ BREAKING CHANGES
- drop support
Node.js@6andNode.js@8, minimum supportedNode.jsversion isNode@10 - the
hotoption istrueby default - the
hotOnlyoption was removed, if you need hot only mode, usehot: 'only'value - the default
transportModeis switched fromsockjstows(IE 11 and other old browsers doesn't support WebSocket, setsockjsvalue fortransportModeif you need supports IE 11) before,afterandsetupwere removed in favoronBeforeSetupMiddleware(previouslybefore) andonAfterSetupMiddlewareoptions (previouslyafter)- the
clientOptionswas renamed to theclientoption - the
key,cert,pfx,pfx-passphrase,cacert,caandrequestCertoptions were moved tohttpsoptions, please usehttps.{key|cert|pfx|passphrase|requestCert|cacert|ca|requestCert} - the
sockHost,sockPathandsockPortoptions were removed inclientoption - the
inlineoption (iframelive mode) was removed - the
lazyandfilenameoptions were removed - the
featuresoption was removed - the
log,logLevel,logTime,noInfo,quiet,reporterandwarnoptions were removed in favor of built-in webpack logger, please read this to enable and setup logging output - the
fs,index,mimeTypes,publicPath,serverSideRender, andwriteToDiskoptions were moved in thedevoption (webpack-dev-middlewareoptions) - updating
webpack-dev-middlewareto v4, which includes many breaking options changes, please read - the
statsoption was removed, please use thestatsoption fromwebpack.config.js - the
socketoption was removed - the
contentBase,contentBasePublicPath,serveIndex,staticOptions,watchContentBase,watchOptionswere removed in favor of thestaticoption - the
disableHostCheckandallowedHostsoptions were removed in favor of thefirewalloption server.listen()will find free port if theportis not set and theportargument is not passed, also print a warning if theportoption and theportargument passed toserver.listen()are different- the
progressoption is moved to theclientoption, setclient: {progress: true} - the
profileoption was removed, to print profile data, setclient: { progress: 'profile' } - client uses the port of the current location (
location.port, equivalent tosockPort: 'location'), by default. To get previously behavior, set theclient.portwith the port you'd like to set - client uses the hostname of the current location (
location.hostname), by default. To get previously behavior, set theclient.hostwith the hostname you'd like to set
Features
- compatibility with
webpack@5 - compatibility with
webpack-cli@4 - added the
setupExitSignalsoption, it takes a boolean and if true (default on CLI), the server will close and exit the process on SIGINT and SIGTERM - update
chokidarto v3
Notes
Unfortunately, due to the huge amount of changes it is very difficult to display all changes in a convenient form. Therefore, we offer you a couple of popular examples (feel free to send a PR with more examples).
static
Previously contentBase, contentBasePublicPath, serveIndex, staticOptions, watchContentBase and watchOptions
module.exports = {
// ...
devServer: {
// Can be:
// static: path.resolve(__dirname, 'static')
// static: false
static: [
// Simple example
path.resolve(__dirname, 'static'),
// Complex example
{
directory: path.resolve(__dirname, 'static'),
staticOptions: {},
// Don't be confused with `dev.publicPath`, it is `publicPath` for static directory
// Can be:
// publicPath: ['/static-public-path-one/', '/static-public-path-two/'],
publicPath: '/static-public-path/',
// Can be:
// serveIndex: {} (options for the `serveIndex` option you can find https://github.com/expressjs/serve-index)
serveIndex: true,
// Can be:
// watch: {} (options for the `watch` option you can find https://github.com/paulmillr/chokidar)
watch: true,
},
],
},
};publicPath
module.exports = {
// ...
devServer: {
dev: {
publicPath: '/publicPathForDevServe',
},
},
};firewall
Previously disableHostCheck and allowedHosts
module.exports = {
// ...
devServer: {
// Can be
// firewall: ['192.168.0.1', 'domain.com']
firewall: false,
},
};logging
module.exports = {
// ...
infrastructureLogging: {
// Only warnings and errors
// level: 'none' disable logging
// Please read https://webpack.js.org/configuration/other-options/#infrastructurelogginglevel
level: 'warn',
},
};
Assets
2
alexander-akait
released this
3.11.0 (2020-05-08)
Features
- add icons for directory viewer (#2441) (e953d01)
- allow multiple
contentBasePublicPathpaths (#2489) (c6bdfe4) - emit progress-update (#2498) (4808abd), closes #1666
- add invalidate endpoint (#2493) (89ffb86)
- allow open option to accept an object (#2492) (adeb92e)
Bug Fixes
Assets
2
alexander-akait
released this
Assets
2
alexander-akait
released this
3.10.2 (2020-01-31)
Bug Fixes
Assets
2
alexander-akait
released this
Assets
2
alexander-akait
released this
3.10.0 (2019-12-18)
Features
- client: allow sock port to use location's port (
sockPort: 'location') (#2341) (dc10d06) - server: add
contentBasePublicPathoption (#2150) (cee700d)
Bug Fixes
Assets
2
alexander-akait
released this
3.9.0 (2019-10-22)
Bug Fixes
- add
hostnameandportto bonjour name to prevent name collisions (#2276) (d8af2d9) - add
extKeyUsageto self-signed cert (#2274) (a4dbc3b)