Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

fix: configure webpack to fix paid powerpaste plugin #402

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ const path = require('path');
const { createConfig } = require('@edx/frontend-build');
const CopyPlugin = require('copy-webpack-plugin');

const config = createConfig('webpack-dev');
const config = createConfig('webpack-dev', {
resolve: {
fallback: {
fs: false,
constants: false,
},
},
});

/**
* Allow serving xblock-bootstrap.html from the MFE itself.
Expand Down
9 changes: 8 additions & 1 deletion webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ const path = require('path');
const { createConfig } = require('@edx/frontend-build');
const CopyPlugin = require('copy-webpack-plugin');

const config = createConfig('webpack-prod');
const config = createConfig('webpack-prod', {
resolve: {
fallback: {
fs: false,
constants: false,
},
},
});

/**
* Allow serving xblock-bootstrap.html from the MFE itself.
Expand Down