diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 016bc57ce2..ec973f21c8 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -1,4 +1,3 @@ -const fs = require('fs') const path = require('path') const glob = require('glob') const webpack = require('webpack') @@ -8,8 +7,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin') const PackageVersions = require('./app/src/infrastructure/PackageVersions') -const MODULES_PATH = path.join(__dirname, '/modules') - // Generate a hash of entry points, including modules const entryPoints = { serviceWorker: './frontend/js/serviceWorker.js', @@ -22,17 +19,6 @@ const entryPoints = { 'light-style': './frontend/stylesheets/light-style.less', } -// Attempt to load frontend entry-points from modules, if they exist -if (fs.existsSync(MODULES_PATH)) { - fs.readdirSync(MODULES_PATH).reduce((acc, module) => { - const entryPath = path.join(MODULES_PATH, module, '/frontend/js/index.js') - if (fs.existsSync(entryPath)) { - acc[module] = entryPath - } - return acc - }, entryPoints) -} - // Add entrypoints for each "page" glob .sync(path.join(__dirname, 'modules/*/frontend/js/pages/**/*.js'))