Releases: symfony/webpack-encore
Small webpack-cli version bug fix
Hey Webpackers!
A tiny release that addresses a possible dependency issue with webpack-cli that can cause aa cryptic error. No fun!
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.7.1"
Changes: v1.7.0..v1.7.1
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Bug Fix
Happy packing!
Support for Stimulus v3 (@hotwired/stimulus)
Hey Webpackers!
Yes! A new release! This small release adds support for Stimulus 3 (i.e. @hotwired/stimulus
) and also fixes a minor bug when using the dev-server.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.7.0"
Changes: v1.6.1..v1.7.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
Dependency changes:
- Official support for
ts-loader
8 was dropped. - Official support for
typescript
3 was dropped and minimum increased to 4.2.2. - Official support for
vue
was bumped to 3.2.14 or higher. - Official support for
vue-loader
was bumped to 16.7.0 or higher.
Feature
- #1062 - Allowing @hotwired/stimulus, allowing @symfony/stimulus-bridge 3, dropping v1. - @weaverryan
Bug Fix
Happy packing!
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 > [email protected]" 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!