From 9ad192054b9f423962969d31a2d5d6403b8f3992 Mon Sep 17 00:00:00 2001 From: kenclary Date: Tue, 9 Jan 2024 16:15:34 -0500 Subject: [PATCH] fix: configure webpack to fix paid powerpaste plugin (#783) --- webpack.dev.config.js | 12 ++++++++++++ webpack.prod.config.js | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 webpack.dev.config.js create mode 100644 webpack.prod.config.js diff --git a/webpack.dev.config.js b/webpack.dev.config.js new file mode 100644 index 0000000000..33791fda2a --- /dev/null +++ b/webpack.dev.config.js @@ -0,0 +1,12 @@ +const { createConfig } = require('@edx/frontend-build'); + +const config = createConfig('webpack-dev', { + resolve: { + fallback: { + fs: false, + constants: false, + }, + }, +}); + +module.exports = config; diff --git a/webpack.prod.config.js b/webpack.prod.config.js new file mode 100644 index 0000000000..e5b4cb228b --- /dev/null +++ b/webpack.prod.config.js @@ -0,0 +1,12 @@ +const { createConfig } = require('@edx/frontend-build'); + +const config = createConfig('webpack-prod', { + resolve: { + fallback: { + fs: false, + constants: false, + }, + }, +}); + +module.exports = config;