From 26ca48b2bd5c1b4166e2f12f2f27778f1bbd137a Mon Sep 17 00:00:00 2001 From: Martin Grossmann Date: Fri, 8 Sep 2023 15:42:48 +0200 Subject: [PATCH] WIP --- app/package.json | 1 - app/webpack.config.js | 21 --------------------- 2 files changed, 22 deletions(-) diff --git a/app/package.json b/app/package.json index e937c48dff..0e7f2cf193 100644 --- a/app/package.json +++ b/app/package.json @@ -36,7 +36,6 @@ "eslint-plugin-node": "^8.0.1", "eslint-plugin-promise": "^4.3.1", "eslint-plugin-standard": "^4.1.0", - "event-hooks-webpack-plugin": "^2.2.0", "format-graphql": "^1.4.0", "glob": "^7.1.6", "jest": "^27.0.1", diff --git a/app/webpack.config.js b/app/webpack.config.js index 1e105610da..555398200f 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -1,6 +1,4 @@ const Encore = require('@symfony/webpack-encore'); -const EventHooksPlugin = require('event-hooks-webpack-plugin'); -const processTrans = require('./assets/js/commands/translations/process'); const CopyPlugin = require('copy-webpack-plugin'); const path = require('path'); const StylelintPlugin = require('stylelint-webpack-plugin'); @@ -33,25 +31,6 @@ Encore .configureWatchOptions(function (watchOptions) { watchOptions.ignored = '**/*.json'; }) - .addPlugin(new EventHooksPlugin({ - beforeRun: () => { - const dirWithJsFiles = [ - sources.getFrameworkNodeModulesDir() + '/js/**/*.js', - './assets/js/**/*.js' - ]; - const dirWithTranslations = [ - sources.getFrameworkVendorDir() + '/src/Resources/translations/*.po', - './translations/*.po', - ]; - const outputDirForExportedTranslations = './assets/js/'; - - try { - processTrans(dirWithJsFiles, dirWithTranslations, outputDirForExportedTranslations); - } catch (e) { - console.log('Parsing files for translations has failed.'); - } - } - })) .addPlugin(new CopyPlugin({ patterns: [ {