From bacda33468c64ccefd01e76eaa17d7a4f078e1f9 Mon Sep 17 00:00:00 2001 From: Jenne Date: Mon, 14 Apr 2025 15:32:32 +0200 Subject: [PATCH] [webpack-encore-bundle] Disable build notifications by default (#1353) * Commented for config and removed dependency in package * Update symfony/webpack-encore-bundle/2.0/webpack.config.js Co-authored-by: Hugo Alliaume --------- Co-authored-by: Hugo Alliaume --- symfony/webpack-encore-bundle/2.0/package.json | 3 +-- symfony/webpack-encore-bundle/2.0/webpack.config.js | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/symfony/webpack-encore-bundle/2.0/package.json b/symfony/webpack-encore-bundle/2.0/package.json index 1d9ddc36..d3402903 100644 --- a/symfony/webpack-encore-bundle/2.0/package.json +++ b/symfony/webpack-encore-bundle/2.0/package.json @@ -6,8 +6,7 @@ "core-js": "^3.38.0", "regenerator-runtime": "^0.13.9", "webpack": "^5.74.0", - "webpack-cli": "^5.1.0", - "webpack-notifier": "^1.15.0" + "webpack-cli": "^5.1.0" }, "license": "UNLICENSED", "private": true, diff --git a/symfony/webpack-encore-bundle/2.0/webpack.config.js b/symfony/webpack-encore-bundle/2.0/webpack.config.js index 97de62c5..391fd7a1 100644 --- a/symfony/webpack-encore-bundle/2.0/webpack.config.js +++ b/symfony/webpack-encore-bundle/2.0/webpack.config.js @@ -37,7 +37,10 @@ Encore * https://symfony.com/doc/current/frontend.html#adding-more-features */ .cleanupOutputBeforeBuild() - .enableBuildNotifications() + + // Displays build status system notifications to the user + // .enableBuildNotifications() + .enableSourceMaps(!Encore.isProduction()) // enables hashed filenames (e.g. app.abc123.css) .enableVersioning(Encore.isProduction())