Skip to content
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

Serving multiple versions of components package #1272

Open
dnovacik opened this issue Nov 2, 2021 · 2 comments
Open

Serving multiple versions of components package #1272

dnovacik opened this issue Nov 2, 2021 · 2 comments

Comments

@dnovacik
Copy link

dnovacik commented Nov 2, 2021

Hi, is there a support to serve multiple version of an npm component package?

E.g.: I have a components library of v1.0 but there will be major changes in v2.0 that would break the earlier pages made with v1.0, is there an ability to provide multiple versions of that package and serve by some version property?

the scripts are added in the startup:

app.UseReact(config =>
{
  config
    .SetReuseJavaScriptEngines(true)
    .SetLoadBabel(false)
    .SetLoadReact(false)
    .SetReactAppBuildPath("~/dist");
});

is there a way to provide it with different versions?

(inserting proper version into _Layout.cshtml doesn't seem like a problem, neither installing different version with npm alias and/or outputting to dist folders with version)

Thanks

@dustinsoftware
Copy link
Member

dustinsoftware commented Nov 2, 2021 via email

@dnovacik
Copy link
Author

dnovacik commented Nov 2, 2021

Oh so I would have several entry points and outputs with versions and use the app.UseReact with just the ~dist folder with all the versions and just include them in the layout. so it would be only about setting the webpack right?

Thanks I'll try to set it up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants