mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 07:36:30 +03:00
Migrate Webpack Encore recipe to Stimulus 2
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@symfony/stimulus-bridge": "^1.0.0",
|
||||
"@symfony/stimulus-bridge": "^1.1.0",
|
||||
"@symfony/webpack-encore": "^0.32.0",
|
||||
"core-js": "^3.0.0",
|
||||
"stimulus": "^1.1.1",
|
||||
"stimulus": "^2.0.0",
|
||||
"regenerator-runtime": "^0.13.2",
|
||||
"webpack-notifier": "^1.6.0"
|
||||
},
|
||||
|
||||
@@ -4,16 +4,16 @@ webpack_encore:
|
||||
# If multiple builds are defined (as shown below), you can disable the default build:
|
||||
# output_path: false
|
||||
|
||||
# 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'
|
||||
|
||||
# preload all rendered script and link tags automatically via the HTTP/2 Link header
|
||||
# Preload all rendered script and link tags automatically via the HTTP/2 Link header
|
||||
# preload: true
|
||||
|
||||
# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
|
||||
# strict_mode: false
|
||||
|
||||
# if you have multiple builds:
|
||||
# If you have multiple builds:
|
||||
# builds:
|
||||
# pass "frontend" as the 3rg arg to the Twig functions
|
||||
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}
|
||||
|
||||
Reference in New Issue
Block a user