Skip to content

Releases: symfony/webpack-encore

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!

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

12 Feb 02:18
Compare
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
Compare
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
Compare
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!