-
Notifications
You must be signed in to change notification settings - Fork 932
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
how to switch between demo of examples without restarting npm #778
Comments
There is no way to do this at the moment. I agree it would be nice to have something like this, especially a whole documentation/examples website, but it's not something I'm focused on in the short term. |
Thank you for the prompt reply. I can understand your prioritization. Something you may want to consider while adding this enhancement : |
My suggestion:
@gabrielliwerant if you agree on this solution I can start working on it. |
@alielkhateeb That's a great start, I would accept that PR! Even better would be to have a simple list of links at |
@gabrielliwerant Cool, I'll start working on that tonight |
…th router) Added router cards and started adding routes.
* [Enhancement] working on issue #778 (Switch between examples with router) Added router cards and started adding routes. * Added all the examples to examples.js exported all examples components * Fixed some exports Listed the number of examples * Added noslash type to remove the extra slash after the # from the URL (#778)
* [Enhancement] working on issue gregnb#778 (Switch between examples with router) Added router cards and started adding routes. * Added all the examples to examples.js exported all examples components * Fixed some exports Listed the number of examples * Added noslash type to remove the extra slash after the # from the URL (gregnb#778)
How can I switch between the demo of examples like expandable-rows, serverside-options, etc without having to change webpack.config.js and restart?
I have checked out mui-datatables code and want to see different examples live and possibly change them and see the changes.
I figured out that by changing webpack.config.js:
module.exports = {
entry: {
app: "./examples/customize-filter/index.js"
}
and restarting the app I could accomplish this.
But is there a way to do it without restarting? and without changing the webpack?
One solution I'm hoping for is that there should be direct urls like :
http://localhost:5050/expandable-rows
http://localhost:5050/serverside-options
to see the respective examples.
Expected Behavior
Current Behavior
Steps to Reproduce (for bugs)
Your Environment
The text was updated successfully, but these errors were encountered: