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

Add ability to use a different demo.json for development #14

Open
3 tasks
iturgeon opened this issue Oct 5, 2018 · 0 comments
Open
3 tasks

Add ability to use a different demo.json for development #14

iturgeon opened this issue Oct 5, 2018 · 0 comments

Comments

@iturgeon
Copy link
Member

iturgeon commented Oct 5, 2018

This is being done in several widgets, let's move support into the MWDK.

const devDemo = 'demo_dev.json'
if (process.env.npm_lifecycle_script == 'webpack-dev-server') {
	options.demoPath = devDemo
}
  • Add an option to getLegacyWidgetBuildConfig() named devDemoPath
  • If devDemoPath set and webpack dev server in use, load the file from devDemoPath
  • add a print output saying which demo.json is being loaded
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

1 participant