-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore webpack-dev-server index html (#446)
* restore webpack-dev-server index html * add changeset * support disableHtmlGeneration option inline PR suggestion from @joeldenning Co-authored-by: Joel Denning <joeldenning@gmail.com> --------- Co-authored-by: Joel Denning <joeldenning@gmail.com>
- Loading branch information
1 parent
88364e8
commit a771b27
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"webpack-config-single-spa": patch | ||
--- | ||
|
||
Restore instructions for using integrated mode in webpack-dev-server without standalone setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<h2>How do I develop this microfrontend?</h2> | ||
<ol> | ||
<li> | ||
Copy the URL to your microfrontend entrypoint from | ||
<a href="/webpack-dev-server" target="_blank" rel="noopener" | ||
>webpack-dev-server assets</a | ||
> | ||
to your clipboard | ||
</li> | ||
<li> | ||
In a new browser tab, go to the your single-spa web app. This is where your | ||
"root config" is running. You do not have to run the root config locally if | ||
it is already running on a deployed environment - go to the deployed | ||
environment directly. | ||
</li> | ||
<li> | ||
In the browser console, run | ||
<code>localStorage.setItem('devtools', true);</code> Refresh the page. | ||
</li> | ||
<li> | ||
A yellowish rectangle should appear at the bottom right of your screen. | ||
Click on it. Find the name @emoney/home and click on it. If it is not | ||
present, click on Add New Module. | ||
</li> | ||
<li>Paste the URL above into the input that appears. Refresh the page.</li> | ||
<li>Congrats, your local code is now being used!</li> | ||
</ol> | ||
<p>For further information about "integrated" mode, see the following links:</p> | ||
<ul> | ||
<li> | ||
<a | ||
target="_blank" | ||
rel="noopener" | ||
href="https://single-spa.js.org/docs/recommended-setup#local-development" | ||
>Local Development Overview</a | ||
> | ||
</li> | ||
<li> | ||
<a | ||
target="_blank" | ||
rel="noopener" | ||
href="https://github.com/joeldenning/import-map-overrides" | ||
>Import Map Overrides Documentation</a | ||
> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters