Bot releases are visible (Hide)
Published by weaverryan about 3 years ago
Hi Webpackers!
This release allows the latest less-loader and postcss-loader to be used:
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!
Published by weaverryan over 3 years ago
Hi Webpackers!
This release allows the latest ts-loader and sass-loader to be installed.
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
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!
friendly-errors-webpack-plugin
was replaced by@nuxt/friendly-errors-webpack-plugin
- the previous package was abandoned.Encore.configureFriendlyErrorsPlugin()
and happen to configure someyarn 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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
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:
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
Hi Webpackers!
This release allows you to use the newest version of 4 loaders without warnings:
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
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!
Published by weaverryan over 3 years ago
Hi Webpackers!
This release fixes a bug related to version 4 of webpack-dev-server (which is included in version 1 of this library). The code still relied on several, removed options. See #899 for more details.
yarn upgrade "@symfony/webpack-encore@^1.0.1"
Changes: v1.0.0..v1.0.1
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!
Published by weaverryan over 3 years ago
Hi Webpackers!
Today I'm thrilled to release Encore 1.0. In reality, Encore has been stable for years and has, as often as possible, deprecated features instead of hard breaking.
Most importantly, this release upgrades Webpack from 4 to 5, and a number of other dependencies have also been upgraded.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^1.0.0"
Changes: v0.33.0..v1.0.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
[DEPENDENCY UPGRADE] Webpack was upgraded from version 4 to 5.
[DEPENDENCY UPGRADES] The following packages had major version upgrades:
css-loader
from 3 to 5assets-webpack-plugin
from 5 to 7mini-css-extract-plugin
from 0.4 to 1style-loader
from 1 to 2terser-webpack-plugin
from 1 to 5webpack-cli
from 3 to 4webpack-manifest-plugin
from 2 to 3webpack-manifest-plugin
from 3 to 4-beta[DEPENDENCY SUPPORT CHANGES] Encore has changed what versions it supports
of the following packages:
less
from 3 to 4 and less-loader
from 6 to 7fork-ts-checker-webpack-plugin
from 4 to 5 or 6[BC BREAK] Image and font processing was changed from using file-loader
(and optionally url-loader
via configureUrlLoader()
) to Webpack 5's
new Asset Modules.
In practice, unless you have a highly-configured system, this should
not cause significant changes.
[BC BREAK] The configureUrlLoader()
method was removed. See
configureImageRule()
and configureFontRule()
- specifically the
maxSize
option and type: 'asset'. The url-loader
is no longer used.
[BC BREAK] The disableImagesLoader()
and disableFontsLoader()
methods
have been removed. See configureImageRule()
and configureFontRule()
for a new option to disable these.
[BC BREAK] The configureFilenames()
method no longer accepts paths
for images
or fonts
. See configureImageRule()
and configureFontRule()
for how to configure these filenames. The configureFilenames()
method
does now accept an assets
option, but out-of-the-box, this will not
result in any filename changes. See configureFilenames()
for more details.
[BC BREAK] optimize-css-assets-webpack-plugin
was replaced by
css-minimizer-webpack-plugin
and the optimizeCssPluginOptionsCallback()
method was replaced by cssMinimizerPluginOptionsCallback()
.
[BC BREAK] The file-loader
package is no longer required by Encore. If
you use copyFiles()
, you will need to install it manually (you
will receive a clear error about this).
[BC BREAK] All previously-deprecated methods & options were removed.
[BEHAVIOR CHANGE] The HashedModuleIdsPlugin
was previously used to
help name "modules" when building for production. This has been removed
and we now use Webpack's native optimization.moduleIds
option, which
is set to deterministic
.
[configureMiniCssExtractPlugin()] configureMiniCssExtractPlugin()
was
added to allow the MiniCssExtractPlugin.loader
and MiniCssExtractPlugin
to be configured.
[enableBuildCache()] Added enableBuildCache()
to enable the new
Webpack 5 build caching. https://webpack.js.org/blog/2020-10-10-webpack-5-release/
This feature should be considered experimental.
Happy Webpacking!
Published by weaverryan almost 4 years ago
Yes! New Release!
This release is mostly about upgrading Encore's "dev" dependencies, which don't affect your project. What
this does do is change the versions that Encore guarantees support for. For example, if you have postcss-loader
installed in your app, this release no longer guarantees support for version 3, but we now DO guarantee
support for version 4.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^0.33.0"
Changes: v0.32.1..v0.33.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
[disableCssExtraction()] Added boolean argument to disableCssExtraction()
to make it easier to dynamically disable extraction - #756 thanks
to @football2801.
[DEPENDENCY UPGRADE] Vue 3 was already supported, but the dependencies
have been upgraded to explicitly support the stable version, instead
of beta versions - #869 thanks to @weaverryan
[DEPENDENCY UPGRADE] Explicit support for postcss-loader
v3 was
dropped but support for v4 was added - #854 thanks to @railto.
[DEPENDENCY UPGRADE] Support for sass-loader
v10 was added - #865
thanks to @shmshd.
Allowed using copyFiles()
even if you don't have any other
entrypoints - #831 thanks to @pszalko.
[DEPENDENCY UPGRADE] Support for ts-loader
was upgraded from
^5.3
to ^8.0.1
. This means that only ^8.0.1
of ts-loader
is guaranteed to work - #800 thanks to @skmedix.
[DEPENDENCY UPGRADE] Support for eslint
v5 was removed but support
for v7 was added. Also, eslint-loader
support for v3 was removed
but support for v4 was added - see #774 thanks to @Kocal.
Happy packing!
Published by weaverryan almost 4 years ago
Hey Webpackers!
This release contains a bug fix for 0.32.0 where Encore would always require
the @symfony/stimulus-bridge/webpack-helper
module, even if you were not
using the Stimulus helper.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^0.32.1"
Changes: v0.32.0..v0.32.1
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
@symfony/stimulus-bridge/webpack-helper
module, even if youPublished by weaverryan almost 4 years ago
Hi Webpackers!
This release introduces a new feature to work with Symfony's new UX system 🎆 https://symfony.com/blog/new-in-symfony-the-ux-initiative-a-new-javascript-ecosystem-for-symfony
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^0.32.0"
Changes: v0.31.1..v0.32.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
enableStimulusBridge()
method wasHappy packing!
Published by weaverryan almost 4 years ago
Hi Webpackers!
This is very small release that bumps one dependency.
To upgrade run:
yarn upgrade "@symfony/webpack-encore@^0.31.1"
Changes: v0.31.0..v0.31.1
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
resolve-url-loader
was updated from ^3.0.1
^3.1.2
, which should not affect most users. See #848 thanksHave fun!
Published by weaverryan about 4 years ago
Hi Webpackers!
This is a small release that bumps a few dependencies.
To upgrade:
Update your package.json
file: set the @symfony/webpack-encore
version to ^0.31.0
.
Run yarn upgrade
!
Changes: v0.30.2..v0.31.0
Documentation: http://symfony.com/doc/current/frontend.html
Highlights:
[DEPENDENCY UPGRADE] assets-webpack-plugin
was updated from ^3.9.7
to ^5.1.1
, which should not affect most users.
[DEPENDENCY UPGRADE] less-loader
was updated from ^4.1.0
to ^6.2.0
. This will likely not affect you unless you're passing
certain custom options in enableLessLoader()
: CHANGELOG
[DEPENDENCY UPGRADE] sass-loader
was updated from ^8.0.0
to ^9.0.1
, which has some options-related changes: CHANGELOG