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

Commit

Permalink
fix: configure webpack to fix paid powerpaste plugin (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenclary authored Jan 9, 2024
1 parent 9c0cd03 commit d3ce0c4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
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

0 comments on commit d3ce0c4

Please sign in to comment.