-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tutor-dev] [BUG] webpack.dev.config.js overrides existing file for some MFEs #71
Comments
I've found some comments on this npm issue (#3136) mentioning the use of The non-working command: The PR should be coming shortly. |
Thanks for the detailed report @ARMBouhali. Do you happen to know whether this issue also affects the Nutmeg release (tutor-mfe v14)? I see that the gradebook is included in your list of affected MFEs, and the gradebook is supposed to work with the tutor-mfe plugin. |
@regisb The issue affects microfrontends run in dev environment so no issue with nutmeg when run in production. |
fixes issue overhangio#71 for to account for MFEs that have an existing webpack.dev.config.js
@regisb the PR is out. |
fixes issue overhangio#71 for to account for MFEs that have an existing webpack.dev.config.js
fixes issue #71 for to account for MFEs that have an existing webpack.dev.config.js
fixes issue overhangio#71 for to account for MFEs that have an existing webpack.dev.config.js
As I'm running the nightly flavor of tutor, mainly for feature testing and contribution, I have a recurring issue with the provided
webpack.dev.config.js
.When
webpack.dev.config.js
gets mounted on MFE dev containers, it replaces any existing file of the same name in some MFE codebases. The pre-existing config differs from app to app, and it's not possible to cover them with a single patch placeholder (mfe-webpack-dev-config
)Example: MFE apps branched for olive which have a
webpack.dev.config.js
I'm preparing a fix which consists of 3 steps:
webpack.dev.config.js
to avoid overwriting any existing configuration. For example, let's give it the namewebpack.dev-tutor.config.js
.webpack.dev-tutor.config.js
to usewebpack.dev.config.js
from the MFE code when it exists, instead of the one from@edx/frontend-build
.webpack.dev-tutor.config.js
as an alternative configuration source at runtime. (and this is where I am stuck)We are trying to append the option
--config ./webpack.dev-tutor.json
to webpack-dev-server run using 'npm start'So we edit the plugin's
Dockerfile CMD
for dev images:becomes
The
start
script frompackage.json
:"start": "fedx-scripts webpack-dev-server --config --progress"
The problem have is that
npm start
eats the--config
option an leaves the./webpack.dev-tutor.json
which is simply ignored bywebpack-dev-server
I hope some webpack or UNIX guru could assist me in completing that part.
The text was updated successfully, but these errors were encountered: