diff --git a/symfony/webpack-encore-bundle/2.0/package.json b/symfony/webpack-encore-bundle/2.0/package.json index b4ce2a66a..1d9ddc361 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 b55c0c928..d0ca6c4b4 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 9d752df43..97de62c5a 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