Migrate Webpack Encore recipe to Stimulus 2

This commit is contained in:
Titouan Galopin
2020-12-05 21:13:30 +01:00
parent c758d80156
commit 5c6602044e
2 changed files with 5 additions and 5 deletions
@@ -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') }}