From d62024a8a5f54a5b9dac91488ed700afa98442fb Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Sun, 6 Oct 2024 11:34:46 +0200 Subject: [PATCH] [WebpackEncoreBundle] Update recipe for Webpack Encore 5 (#1341) --- symfony/webpack-encore-bundle/2.0/package.json | 6 +++--- symfony/webpack-encore-bundle/2.0/post-install.txt | 10 +++++++--- symfony/webpack-encore-bundle/2.0/webpack.config.js | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/symfony/webpack-encore-bundle/2.0/package.json b/symfony/webpack-encore-bundle/2.0/package.json index b4ce2a66..1d9ddc36 100644 --- a/symfony/webpack-encore-bundle/2.0/package.json +++ b/symfony/webpack-encore-bundle/2.0/package.json @@ -2,11 +2,11 @@ "devDependencies": { "@babel/core": "^7.17.0", "@babel/preset-env": "^7.16.0", - "@symfony/webpack-encore": "^4.0.0", - "core-js": "^3.23.0", + "@symfony/webpack-encore": "^5.0.0", + "core-js": "^3.38.0", "regenerator-runtime": "^0.13.9", "webpack": "^5.74.0", - "webpack-cli": "^4.10.0", + "webpack-cli": "^5.1.0", "webpack-notifier": "^1.15.0" }, "license": "UNLICENSED", diff --git a/symfony/webpack-encore-bundle/2.0/post-install.txt b/symfony/webpack-encore-bundle/2.0/post-install.txt index b55c0c92..d0ca6c4b 100644 --- a/symfony/webpack-encore-bundle/2.0/post-install.txt +++ b/symfony/webpack-encore-bundle/2.0/post-install.txt @@ -1,5 +1,9 @@ * Install NPM and run npm install - * Compile your assets: npm run dev - - * Or start the development server: npm run watch + * Compile your assets for development: npm run dev + + * Compile your assets for development and watch for any modifications: npm run watch + + * Or start the development server: npm run dev-server + + * Compile your assets for production: npm run build diff --git a/symfony/webpack-encore-bundle/2.0/webpack.config.js b/symfony/webpack-encore-bundle/2.0/webpack.config.js index 9d752df4..97de62c5 100644 --- a/symfony/webpack-encore-bundle/2.0/webpack.config.js +++ b/symfony/webpack-encore-bundle/2.0/webpack.config.js @@ -50,7 +50,7 @@ Encore // enables and configure @babel/preset-env polyfills .configureBabelPresetEnv((config) => { config.useBuiltIns = 'usage'; - config.corejs = '3.23'; + config.corejs = '3.38'; }) // enables Sass/SCSS support