Releases: symfony/webpack-encore
Fix error with webpack-dev-server
Hi Webpackers!
This release contains just one bug fix if you're using the webpack-dev-server
- #1031 - changing position of host option for webpack-dev-server - @weaverryan
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.6.1"
Changes: v1.6.0..v1.6.1
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Allow less-loader 10 and postcss-loader 6
Hi Webpackers!
This release allows the latest less-loader and postcss-loader to be used:
Feature
- #1008 - Allow postcss-loader 6 - @bobvandevijver
- #1009 - Allow less-loader 10 - @bobvandevijver
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.6.0"
Changes: v1.5.0..v1.6.0
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Allow latest versions of ts-loader and sass-loader
Hi Webpackers!
This release allows the latest ts-loader and sass-loader to be installed.
Feature
- #1000 - Allow ts-loader ^9.0.0, close #993 - @Kocal
- #999 - Allow sass-loader ^12.0.0, close #996 - @Kocal
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.5.0"
Changes: v1.4.0..v1.5.0
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Allow less-loader 9 & fix pesky bug with build cache
Hi Webpackers!
This release contains a bug fix if you're using Encore.enableBuildCache()
and allows less-loader version 9. Thanks to @bobvandevijver for both of these - especially the bug fix, which was super tricky.
- [FEATURE] Allow less-loader v9 - #983 thanks to @bobvandevijver
- [BUG] Fix manifest key problem when using copy files - #936 thanks to @bobvandevijver
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.4.0"
Changes: v1.3.0..v1.4.0
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Replacing abandoned friendly-errors-webpack-plugin Package
Hi Webpackers!
This release replaces an abandoned package friendly-errors-webpack-plugin
with a fork of it @nuxt/friendly-errors-webpack-plugin
. If you've been annoyed by warnings like "@symfony/webpack-encore > friendly-errors-webpack-plugin@2.0.0-beta.2" has incorrect peer dependency "webpack@^4.0.0".
, then this release is for you!
- [DEPENDENCY CHANGE]
friendly-errors-webpack-plugin
was replaced by
@nuxt/friendly-errors-webpack-plugin
- the previous package was abandoned.
There should be no noticeable changes, unless you are using
Encore.configureFriendlyErrorsPlugin()
and happen to configure some
feature that differs between these libraries (the new library is a fork
of the old)
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.3.0"
Changes: https://github.com/symfony/webpack-encore/compare/v1.2.0..v1.3.0
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Upgrade css-minimizer-webpack-plugin from v1 to v2
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!
Fixes related to webpack-dev-server & HMR
Hi Webpackers!
This release fixes some bad behavior when using HMR with the dev-server. Previously, on any change (even those where the page should have been updated with HMR without a page refresh), the page would refresh. PR #939 fixes that by disabling auto-refresh. This means that your page will not refresh automatically after making a change. This was a trade-off, as HMR was unusable currently. Hopefully a future version of webpack-dev-server may address this.
Other PR's include:
- minor #940 Clarify missing css file error message (thanks to @Gadgetdude)
- bug #938 Require vue-loader 15.9.5 to work with Encore 1.0 (thanks to @weaverryan)
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.1.2"
Changes: https://github.com/symfony/webpack-encore/compare/v1.1.1..v1.1.2
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Fixing bug with copyFiles()
Hi Webpackers!
This release fixes a bug that was introduced with Encore 1.0 and Webpack 5 related to copyFiles()
. See #894 for the details.
The fix was done in #930 - a big thanks to @Lyrkan.
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.1.1"
Changes: https://github.com/symfony/webpack-encore/compare/v1.1.0..v1.1.1
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Allow new versions of sass, less, stylus and postcss loaders
Hi Webpackers!
This release allows you to use the newest version of 4 loaders without warnings:
- Allow postcss-loader 5
- Allow less-loader 8
- Allow sass-loader 11
- Allow stylus-loader 5
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.1.0"
Changes: https://github.com/symfony/webpack-encore/compare/v1.0.6..v1.1.0
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Fix for manifest.json file with images & fonts
Hi Webpackers!
This release fixes a problem the "keys" inside manifest.json
for some images and fonts - see #907. This was fixed in #921.
If you continue to have any issues with your manifest.json
file, please open an issue. We use a 3rd party library - webpack-manifest-plugin
- and we've been working with them to smooth out their Webpack 5 compatibility.
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.0.6"
Changes: https://github.com/symfony/webpack-encore/compare/v1.0.5..v1.0.6
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!