Skip to content

Releases: symfony/webpack-encore

Upgrade to css-minimizer-webpack-plugin 5

10 Jul 18:07

Choose a tag to compare

Hey packagers!

This release upgrades the css-minimizer-webpack-plugin from 4 to 5. While this dependency bump is a major bump, the underlying library had very few breaking changes and the fast majority of users should be completely unaffected by this.

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.4.0" --save-dev

Or:

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

Changes: v4.3.0..v4.4.0

Happy Packing!

Allowing TypeScript 5 + other minor items

19 Apr 17:22

Choose a tag to compare

Hey packagers!

This release allows TypeScript 5 to be used + a few other small items:

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.3.0" --save-dev

Or:

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

Changes: v4.2.0..v4.3.0

Happy Packing!

Allowing webpack-cli v5

15 Dec 16:29

Choose a tag to compare

Hey packagers!

This release allows webpack-cli version 5 to be used in your package.json file.

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.2.0" --save-dev

Or:

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

Changes: v4.1.2..v4.2.0

Happy Packing!

4.1.2 - fixes Vue 2 version problem

21 Nov 17:28

Choose a tag to compare

Hey packagers!

This release fixes an incompatibility when using @vue/compiler-sfc with Vue 2.7. Thanks to @dmaicher in #1166 for the fix!

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.1.2" --save-dev

Or:

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

Changes: v4.1.1..v4.1.1

Happy Packing!

Fixing version typo in 4.1.0

19 Oct 15:34

Choose a tag to compare

Hey packagers!

A tiny release to fix a typo in 4.1.0 that made the package uninstallable.

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.1.1" --save-dev

Or:

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

Changes: v4.1.0..v4.1.1

Happy Packing!

Svelte Support and Vue 2 Support Fix

17 Oct 13:30

Choose a tag to compare

Hey packagers!

This release adds first-class support for Svelte and fixes Vue 2 support, which was accidentally lost in version 4.0.

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.1.0" --save-dev

Or:

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

Highlights

Features

Bug Fixes

  • Support for Vue 2 was accidentally dropped in 4.0.0, and was re-added - #1157 thanks to @Kocal.

Changes: v4.0.0..v4.1.0

Happy Packing!

4.0! Goodbye "peer dependency" Warnings

14 Sep 18:22

Choose a tag to compare

Hey packagers!

This new major release is actually smaller and has an easy upgrade path. What changed? We have moved certain dependencies (like webpack itself) out of Encore and into your project. This means 2 things:

  1. You'll need to install a few extra packages after upgrading (see notes below)
  2. You can say goodbye to those "has unmet peer dependency" warnings!

This release also makes Encore compatible with Yarn Plug'n'Play and pnpm.

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.0.0" webpack webpack-cli @babel/core @babel/preset-env  --save-dev

Or:

yarn upgrade "@symfony/webpack-encore@^4.0.0"
yarn add webpack webpack-cli @babel/core @babel/preset-env --dev

And note the following BC breaks:

  • The following dependencies must be added in your package.json: webpack webpack-cli @babel/core @babel/preset-env (#1142 and #1150):
npm install webpack webpack-cli @babel/core @babel/preset-env --save-dev

# or via yarn
yarn add webpack webpack-cli @babel/core @babel/preset-env --dev
  • The following dependencies must be removed from your package.json and Babel configuration: @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties,
    since they are already included in @babel/preset-env (#1150):
npm remove @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties

# or via yarn
yarn remove @babel/plugin-syntax-dynamic-import @babel/plugin-proposal-class-properties

and remove it from your Encore configuration:

Encore.configureBabel((options) => {
-    config.plugins.push('@babel/plugin-proposal-class-properties');
+    
})

Changes: v3.1.0..v4.0.0

Happy Packing!

Support for Vue 2.7 and dropping vue-template-compiler

24 Aug 13:46

Choose a tag to compare

Hi Webpackers!

This is a tiny release that adds better support specifically for Vue 2.7.

To upgrade run:

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

Changes: v3.0.0..v3.1.0

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

Highlights:

Features

  • Add vue 2.7 feature to allow dropping vue-template-compiler - #1134 thanks to @billyct

Happy Packing!

3.0 - Dropping Node 12 support and upgrading dependencies

08 Jul 15:29

Choose a tag to compare

Hey packagers!

This new major release is actually quite smaller: including increasing the new Node minimum version from 12 to 14 and upgrading a few dependencies across major versions. Upgrading should be easy.

To upgrade run:

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

Changes: v2.1.0..v3.0.0

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

Highlights:

BC Breaks

  • In #1122 support for Node 12 was dropped.

  • In #1133, the following dependencies were bumped a major version:

    • css-minimizer-webpack-plugin 3.4 -> 4.0 (4.0 just drops Node 12 support)
    • less-loader 10 -> 11
    • postcss-loader 6 -> 7
    • sass-loader 12 -> 13
    • stylus 0.57 -> 0.58
    • stylus-loader 6 -> 7

If you're using any of these (all are optional except for css-minimizer-webpack-plugin
and are extended them with custom configuration, check the CHANGELOG of each for
any possible BC breaks).

Feature

  • #1133 - Increasing dependencies - @weaverryan
  • #1125 - Changing to support the "server" options object for webpack-dev-server - @weaverryan
  • #1122 - Allow sass-loader:^13.0.0, require node >= 14 - @jmsche
  • #1118 - Use cli param server-type to define devServer https mode - @thegillou

Happy Packing!

Allowing sass-embedded

05 May 23:53

Choose a tag to compare

Hey packagers!

This is a small releasing that adds the possibility to use the sass-embedded package with enableSassLoader(), which is a faster alternative to sass.

To upgrade run:

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

Changes: v2.0.0..v2.1.0

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

Highlights:

Feature