Hi Webpackers!
This release contains a major dependency upgrade (see details below) and a cool new .when()
function that allows you
to run conditional code.
-
[DEPENDENCY UPGRADE]
css-minimizer-webpack-plugin
was upgraded from version 1
to version 2. This should not affect you directly, unless you were passing
custom options to this plugin (e.g. viaconfigureCssMinimizerPlugin()
). #966
thanks to @stof. -
[FEATURE] Added
Encore.when()
, which can be used to easily add conditional code
(e.g. code that should be run only in "dev"). See theindex.js
file for
more details - #963 thanks to @Kocal. -
[BUG] When using
webpack-dev-server
, if the target port (e.g. 8080) was
unavailable, previously, a different port would be fine (e.g. 8081). This
has now been disabled and you will get an error instead. This was done
because there is no way for Encore to detect this change and update its
config properly - #943 thanks to @weaverryan.
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.2.0"
Changes: https://github.com/symfony/webpack-encore/compare/v1.1.2..v1.2.0
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!