Skip to content

Releases: symfony/webpack-encore

Small webpack-cli version bug fix

21 Jan 00:52
Compare
Choose a tag to compare

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

  • #1069 - Increased webpack-cli version constraint to v.4.9.1 - @nspyke

Happy packing!

Support for Stimulus v3 (@hotwired/stimulus)

02 Dec 18:22
Compare
Choose a tag to compare

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

  • #1058 - Fix deprecated public option failure for webpack-dev-server - @atesca09

Happy packing!

Fix error with webpack-dev-server

03 Sep 14:39
Compare
Choose a tag to compare

Hi Webpackers!

This release contains just one bug fix if you're using the webpack-dev-server

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

31 Aug 18:58
Compare
Choose a tag to compare

Hi Webpackers!

This release allows the latest less-loader and postcss-loader to be used:

Feature

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

18 Jun 19:39
Compare
Choose a tag to compare

Hi Webpackers!

This release allows the latest ts-loader and sass-loader to be installed.

Feature

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

31 May 16:17
Compare
Choose a tag to compare

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.

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

11 May 12:49
Compare
Choose a tag to compare

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

03 May 13:02
Compare
Choose a tag to compare

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. via configureCssMinimizerPlugin()). #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 the index.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

01 Mar 02:09
Compare
Choose a tag to compare

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()

19 Feb 00:59
Compare
Choose a tag to compare

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!