Skip to content

Commit

Permalink
[WebpackEncoreBundle] Update recipe for Webpack Encore 5 (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal authored Oct 6, 2024
1 parent d7a78f7 commit d62024a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 3 additions & 3 deletions symfony/webpack-encore-bundle/2.0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 7 additions & 3 deletions symfony/webpack-encore-bundle/2.0/post-install.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
* Install NPM and run <fg=green>npm install</>

* Compile your assets: <fg=green>npm run dev</>

* Or start the development server: <fg=green>npm run watch</>
* Compile your assets for development: <fg=green>npm run dev</>

* Compile your assets for development and watch for any modifications: <fg=green>npm run watch</>

* Or start the development server: <fg=green>npm run dev-server</>

* Compile your assets for production: <fg=green>npm run build</>
2 changes: 1 addition & 1 deletion symfony/webpack-encore-bundle/2.0/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d62024a

Please sign in to comment.