fix: do not modify webpack.config.js

This commit is contained in:
Maël Gangloff 2024-08-11 15:57:40 +02:00
parent afcf242f75
commit 8d0f2f6791
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

@ -20,14 +20,11 @@ Encore
* Each entry will result in one JavaScript file (e.g. app.js) * Each entry will result in one JavaScript file (e.g. app.js)
* and one CSS file (e.g. app.css) if your JavaScript imports CSS. * and one CSS file (e.g. app.css) if your JavaScript imports CSS.
*/ */
.addEntry('app', './assets/app.js') .addEntry('app', './assets/index.tsx')
// When enabled, Webpack "splits" your files into smaller pieces for greater optimization. // When enabled, Webpack "splits" your files into smaller pieces for greater optimization.
.splitEntryChunks() .splitEntryChunks()
// enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)
.enableStimulusBridge('./assets/controllers.json')
// will require an extra script tag for runtime.js // will require an extra script tag for runtime.js
// but, you probably want this, unless you're building a single-page app // but, you probably want this, unless you're building a single-page app
.enableSingleRuntimeChunk() .enableSingleRuntimeChunk()
@ -60,11 +57,10 @@ Encore
//.enableSassLoader() //.enableSassLoader()
// uncomment if you use TypeScript // uncomment if you use TypeScript
//.enableTypeScriptLoader() .enableTypeScriptLoader()
// uncomment if you use React // uncomment if you use React
//.enableReactPreset() .enableReactPreset()
// uncomment to get integrity="..." attributes on your script & link tags // uncomment to get integrity="..." attributes on your script & link tags
// requires WebpackEncoreBundle 1.4 or higher // requires WebpackEncoreBundle 1.4 or higher
//.enableIntegrityHashes(Encore.isProduction()) //.enableIntegrityHashes(Encore.isProduction())