feat(update): apply recipes:update symfony/webpack-encore-bundle
This commit is contained in:
parent
1cacfd0bb7
commit
74d12bba3b
|
@ -1,3 +0,0 @@
|
||||||
framework:
|
|
||||||
assets:
|
|
||||||
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
|
|
|
@ -1,4 +0,0 @@
|
||||||
#webpack_encore:
|
|
||||||
# Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
|
|
||||||
# Available in version 1.2
|
|
||||||
#cache: true
|
|
|
@ -1,2 +0,0 @@
|
||||||
#webpack_encore:
|
|
||||||
# strict_mode: false
|
|
|
@ -7,7 +7,12 @@ webpack_encore:
|
||||||
# Set attributes that will be rendered on all script and link tags
|
# Set attributes that will be rendered on all script and link tags
|
||||||
script_attributes:
|
script_attributes:
|
||||||
defer: true
|
defer: true
|
||||||
|
# Uncomment (also under link_attributes) if using Turbo Drive
|
||||||
|
# https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change
|
||||||
|
# 'data-turbo-track': reload
|
||||||
# link_attributes:
|
# link_attributes:
|
||||||
|
# Uncomment if using Turbo Drive
|
||||||
|
# 'data-turbo-track': reload
|
||||||
|
|
||||||
# If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
|
# If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
|
||||||
# crossorigin: 'anonymous'
|
# crossorigin: 'anonymous'
|
||||||
|
@ -20,11 +25,21 @@ webpack_encore:
|
||||||
|
|
||||||
# If you have multiple builds:
|
# If you have multiple builds:
|
||||||
# builds:
|
# builds:
|
||||||
# pass "frontend" as the 3rg arg to the Twig functions
|
|
||||||
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}
|
|
||||||
|
|
||||||
# frontend: '%kernel.project_dir%/public/frontend/build'
|
# frontend: '%kernel.project_dir%/public/frontend/build'
|
||||||
|
|
||||||
# Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
|
# pass the build name as the 3rd argument to the Twig functions
|
||||||
# Put in config/packages/prod/webpack_encore.yaml
|
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}
|
||||||
# cache: true
|
|
||||||
|
framework:
|
||||||
|
assets:
|
||||||
|
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
|
||||||
|
|
||||||
|
#when@prod:
|
||||||
|
# webpack_encore:
|
||||||
|
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
|
||||||
|
# # Available in version 1.2
|
||||||
|
# cache: true
|
||||||
|
|
||||||
|
#when@test:
|
||||||
|
# webpack_encore:
|
||||||
|
# strict_mode: false
|
||||||
|
|
11
symfony.lock
11
symfony.lock
|
@ -648,12 +648,12 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/webpack-encore-bundle": {
|
"symfony/webpack-encore-bundle": {
|
||||||
"version": "1.9",
|
"version": "1.16",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "master",
|
"branch": "main",
|
||||||
"version": "1.9",
|
"version": "1.10",
|
||||||
"ref": "9399a0bfc6ee7a0c019f952bca46d6a6045dd451"
|
"ref": "f8fc53f1942f76679e9ee3c25fd44865355707b5"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"assets/app.js",
|
"assets/app.js",
|
||||||
|
@ -661,9 +661,6 @@
|
||||||
"assets/controllers.json",
|
"assets/controllers.json",
|
||||||
"assets/controllers/hello_controller.js",
|
"assets/controllers/hello_controller.js",
|
||||||
"assets/styles/app.css",
|
"assets/styles/app.css",
|
||||||
"config/packages/assets.yaml",
|
|
||||||
"config/packages/prod/webpack_encore.yaml",
|
|
||||||
"config/packages/test/webpack_encore.yaml",
|
|
||||||
"config/packages/webpack_encore.yaml",
|
"config/packages/webpack_encore.yaml",
|
||||||
"package.json",
|
"package.json",
|
||||||
"webpack.config.js"
|
"webpack.config.js"
|
||||||
|
|
|
@ -11,7 +11,7 @@ Encore
|
||||||
.setOutputPath('public/build/')
|
.setOutputPath('public/build/')
|
||||||
// public path used by the web server to access the output path
|
// public path used by the web server to access the output path
|
||||||
.setPublicPath('/build')
|
.setPublicPath('/build')
|
||||||
// only needed for CDN's or sub-directory deploy
|
// only needed for CDN's or subdirectory deploy
|
||||||
//.setManifestKeyPrefix('build/')
|
//.setManifestKeyPrefix('build/')
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -44,14 +44,15 @@ Encore
|
||||||
// enables hashed filenames (e.g. app.abc123.css)
|
// enables hashed filenames (e.g. app.abc123.css)
|
||||||
.enableVersioning(Encore.isProduction())
|
.enableVersioning(Encore.isProduction())
|
||||||
|
|
||||||
.configureBabel((config) => {
|
// configure Babel
|
||||||
config.plugins.push('@babel/plugin-proposal-class-properties');
|
// .configureBabel((config) => {
|
||||||
})
|
// config.plugins.push('@babel/a-babel-plugin');
|
||||||
|
// })
|
||||||
|
|
||||||
// enables @babel/preset-env polyfills
|
// enables and configure @babel/preset-env polyfills
|
||||||
.configureBabelPresetEnv((config) => {
|
.configureBabelPresetEnv((config) => {
|
||||||
config.useBuiltIns = 'usage';
|
config.useBuiltIns = 'usage';
|
||||||
config.corejs = 3;
|
config.corejs = '3.23';
|
||||||
})
|
})
|
||||||
|
|
||||||
.copyFiles({
|
.copyFiles({
|
||||||
|
|
Loading…
Reference in a new issue