Skip to content

Releases: symfony/webpack-encore

Replacing abandoned friendly-errors-webpack-plugin Package

11 May 12:49

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

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

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

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!

Allow new versions of sass, less, stylus and postcss loaders

12 Feb 02:18

Choose a tag to compare

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

12 Feb 00:13

Choose a tag to compare

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!

Bug fix: using "dev-server" with an https certificate

06 Feb 20:48

Choose a tag to compare

Hi Webpackers!

This release fixes a problem if you're using the dev-server mode with custom https configuration (like setting a pfx for the ssl certificate). See #903.

If you want to run the dev-server in https with some custom configuration, you should configure it entirely in webpack.config.js. For example, if you're using the Symfony binary and want to re-use its https certificate:

const path = require('path');
// ...

     .configureDevServerOptions(options => {
         options.https = {
             pfx: path.join(process.env.HOME, '.symfony/certs/default.p12'),
         }
     })

Then, do NOT pass the --https flag at the command line. Just run:

yarn dev-server

To upgrade:

yarn upgrade "@symfony/webpack-encore@^1.0.5"

Changes: v1.0.4..v1.0.5

Documentation: http://symfony.com/doc/current/frontend.html

Happy packing!

Fixing incorrect warning with stimulus-loader v2

02 Feb 20:21

Choose a tag to compare

Hi Webpackers!

This release fixes an incorrect warning if you're using @symfony/stimulus-bridge version 2. It also outputs a warning if you're using v1 of that library.

yarn upgrade "@symfony/webpack-encore@^1.0.4"

Changes: v1.0.3..v1.0.4

Documentation: http://symfony.com/doc/current/frontend.html

Happy packing!

Fixed performance regression in "watch" and dev-server

31 Jan 18:17

Choose a tag to compare

Hi Webpackers!

This release fixes a performance regression when using watch or dev-server. In both cases, every "re-build" would take as long as the original build. See #905 for the fix.

yarn upgrade "@symfony/webpack-encore@^1.0.3"

Changes: v1.0.2..v1.0.3

Documentation: http://symfony.com/doc/current/frontend.html

Happy packing!

Fix bug with dev-server and missing manifest.json file

29 Jan 00:57

Choose a tag to compare

Hi Webpackers!

This release fixes a bug when using dev-server along with cleanOutputBeforeBuild(). The result would be that the manifest.json file would be missing from the output directory. That was fixed in #901.

yarn upgrade "@symfony/webpack-encore@^1.0.2"

Changes: v1.0.1..v1.0.2

Documentation: http://symfony.com/doc/current/frontend.html

Happy packing!