mirror of
https://github.com/symfony/recipes.git
synced 2026-03-23 23:32:10 +01:00
[WebpackEncoreBundle] Update recipe for Webpack Encore 5 (#1341)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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</>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user