File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,26 @@ pre-processing CSS & JS and compiling and minifying assets.
78
78
79
79
:doc: `Read the Encore Documentation </frontend/encore/index >`
80
80
81
+ Switch from Asset Mapper
82
+ ^^^^^^^^^^^^^^^^^^^^^^^^
83
+
84
+ By default, new Symfony _webapp_ projects (created with ``symfony new --webapp myapp ``)
85
+ use AssetMapper. If you still need to use Webpack Encore, use the following steps to
86
+ switch. This is best done on a new project and provides the same features (Turbo/Stimulus)
87
+ as the default webapp.
88
+
89
+ .. code-block :: terminal
90
+
91
+ # Remove AssetMapper & Turbo/Stimulus temporarily
92
+ $ composer remove symfony/ux-turbo symfony/asset-mapper symfony/stimulus-bundle
93
+
94
+ # Add Webpack Encore & Turbo/Stimulus back
95
+ $ composer require symfony/webpack-encore-bundle symfony/ux-turbo symfony/stimulus-bundle
96
+
97
+ # Install & Build Assets
98
+ $ npm install
99
+ $ npm run dev
100
+
81
101
Stimulus & Symfony UX Components
82
102
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83
103
You can’t perform that action at this time.
0 commit comments