From 8d0f2f6791830bfdfe5ce92f9aeb5a58f73965a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 11 Aug 2024 15:57:40 +0200 Subject: [PATCH] fix: do not modify webpack.config.js --- webpack.config.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index eabdb81..e3d324f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,14 +20,11 @@ Encore * 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. */ - .addEntry('app', './assets/app.js') + .addEntry('app', './assets/index.tsx') // When enabled, Webpack "splits" your files into smaller pieces for greater optimization. .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 // but, you probably want this, unless you're building a single-page app .enableSingleRuntimeChunk() @@ -60,17 +57,16 @@ Encore //.enableSassLoader() // uncomment if you use TypeScript - //.enableTypeScriptLoader() + .enableTypeScriptLoader() // uncomment if you use React - //.enableReactPreset() + .enableReactPreset() +// uncomment to get integrity="..." attributes on your script & link tags +// requires WebpackEncoreBundle 1.4 or higher +//.enableIntegrityHashes(Encore.isProduction()) - // uncomment to get integrity="..." attributes on your script & link tags - // requires WebpackEncoreBundle 1.4 or higher - //.enableIntegrityHashes(Encore.isProduction()) - - // uncomment if you're having problems with a jQuery plugin - //.autoProvidejQuery() +// uncomment if you're having problems with a jQuery plugin +//.autoProvidejQuery() ; module.exports = Encore.getWebpackConfig();