feat(ui): modularisation du css et fidélisation des composants à la maquette figma
- découpage du css par composant (navbar, hero, footer, global) - ajustement pixel-perfect du footer (newsletter full-bleed, alignements, typographies) - documentation et commentaires détaillés du code react et css
This commit is contained in:
30
webpack.config.cjs
Normal file
30
webpack.config.cjs
Normal file
@ -0,0 +1,30 @@
|
||||
const Encore = require('@symfony/webpack-encore');
|
||||
|
||||
// Manually configure the runtime environment if not already configured yet by the "encore" command.
|
||||
if (!Encore.isRuntimeEnvironmentConfigured()) {
|
||||
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
|
||||
}
|
||||
|
||||
Encore
|
||||
// Répertoire où les fichiers compilés seront stockés
|
||||
.setOutputPath('public/build/')
|
||||
// Chemin public utilisé par le serveur web
|
||||
.setPublicPath('/build')
|
||||
|
||||
/*
|
||||
* ENTRY CONFIG
|
||||
*/
|
||||
.addEntry('app', './assets/app.js')
|
||||
|
||||
.splitEntryChunks()
|
||||
.enableSingleRuntimeChunk()
|
||||
.cleanupOutputBeforeBuild()
|
||||
.enableSourceMaps(!Encore.isProduction())
|
||||
.enableVersioning(Encore.isProduction())
|
||||
|
||||
// Activer React
|
||||
.enableReactPreset()
|
||||
.enablePostCssLoader()
|
||||
;
|
||||
|
||||
module.exports = Encore.getWebpackConfig();
|
||||
Reference in New Issue
Block a user