-
Minimum supported
css-loader
version is4.x
now. Removed all previously usedUNIVERSAL_WEBPACK_CSS_LOADER_VX
environment variable workarounds. -
extract-text-webpack-plugin
is no longer used for CSS.mini-css-extract-plugin
supercedes it. RemoveduseMiniCssExtractPlugin
option. -
Migrated the package to use Node.js
type: "module"
parameter. -
Removed export
server
:import { server } from 'universal-webpack'
. Useimport server from 'universal-webpack/server'
instead. -
Removed non-camel-cased exports:
server_configuration
client_configuration
- Updated Babel: 6 -> 7
- Added the support for Webpack 5 "Asset Modules".
- @alecf added support for
css-loader@4
viaUNIVERSAL_WEBPACK_CSS_LOADER_V4=true
environment variable.
- Added support for
css-loader@3
viaUNIVERSAL_WEBPACK_CSS_LOADER_V3=true
environment variable.
- Added support for
css-loader@2
viaUNIVERSAL_WEBPACK_CSS_LOADER_V2=true
environment variable.
- Added
hideSmokeScreenAfter
- a function of delay (in ms).
- Added support for using
mini-css-extract-plugin
instead ofextract-text-webpack-plugin
for Webpack 4. If usingcssBundle: true
feature then also passuseMiniCssExtractPlugin: true
option in case usingmini-css-extract-plugin
instead ofextract-text-webpack-plugin
.
- Fixed Webpack 4 throwing "webpack.optimize.CommonsChunkPlugin has been removed, please use config.optimization.splitChunks instead" error.
-
Some code refactoring performed, some things could theoretically get broken, but it's unlikely.
-
(breaking change)
universal-webpack
command no longer receives the optional--config
argument: instead it only uses an optional--basePath
argument which can either be set to Webpack configuration.context
or it can be omitted in which case it's gonna be the folder from which theuniversal-webpack
command is being run. This base path is being used to resolve theserver
path inside./universal-webpack-settings.js
. -
Added support for
oneOf
loaders.
- Added
loadExternalModuleFileExtensions
which now "excludes from externals" various webpack-loaded assets like CSS files.
- Removed any mentions of
babel-register
from this library because the server-side bundle is already being compiled bybabel-loader
server()
now waits forwebpack-chunks.json
file to be generated by Webpack before starting
- Added new exports:
universal-webpack/config
anduniversal-webpack/server
. The old way of importing still works: these two are just the new approach discussed in a relevant issue.
- Fixed
babel-register
'signore
function on Windows (because Babel seems to be using/
instead of\
in the file paths)
- Only checking
devServer
setting forpublicPath
in development mode
- Fixed npm "private" packages (
@private/package
) not being marked as external dependencies
- Renamed
extract-text-webpack-plugin
deprecated options:fallbackLoader
->fallback
,loader
->use
- Added
configuration
named parameter to theserver()
caller (along with the oldchunks()
named function parameter)
- Instead of using
fake-style-loader
now usingcss-loader/locals
- Not emitting
file-loader
's files during the server side build now (make sure your favicon is included on the client side then)
- Fixed the latest version of extract text plugin
- Added
babel-register
options for server side startup speed up
- Now only supports Webpack 2 (which is gonna be released soon; use
@2.2.0-rc.3
in the meanwhile). Use the old0.1.x
version for Webpack 1.
- A small fix for Webapack 2
module.rules
- A small fix for
externals
context
is nowprocess.cwd()
by default (as per Webpack docs)
- Fixed
__dirname
and__filename
in server-side builds
- Fixes server bundle not yet has been written to disk
- Added
silent
option (won't output client side webpack build stats to console; e.g. when usingwebpack-dashboard
)
server
running function now returns aPromise
with a result of whatever is returned from the user suppliedserver(parameters)
function
devtools
is now a function
development: false
option now automatically extracts styles withextract-text-webpack-plugin
(unlesscss_bundle
isfalse
) (the CSS bundle filename can be customized withcss_bundle: "filename.css"
)
- Constrained "flash of unstyled content" fix to setting an additional flag:
css_bundle
. Because this feature can introduce a bug if used unproperly.
- Added the third parameter to Webpack configuration creators. The parameter added is an object of options. It can have a property called
development
withtrue/false
value. It is used in client-side configuration creation to solve the "flash of unstyled content" on page reload.
- Plugin removal bug fix
- Added
exclude_from_externals
module - Covered external modules resolution with tests
- Removing
CommonsChunkPlugin
from server-side configuration
- Removing
HotModuleReplacementPlugin
from server-side configuration
@papigers
fixed server-side code error swallowing
- Fixing
webpack-dev-server
overwritingconfiguration.output.path
- Now replacing
style-loader
withfake-style-loader
for server-side Webpack configuration
- Fixed
ExtractTextPlugin
- Fixed
resolve.alias
- Fixed Babel export issues during server-side code importing
- Fixed "Cannot find module 'colors/safe'"
- Fixed hot reload on server-side (restarts Node.js (Nodemon) on code changes)
- Removed the global
_server_
variable (too specific for the project, anyone can set it using Webpack'sDefinePlugin
insidewebpack.config.server.js
)
- Initial release