-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
adding flag to disable service worker #377
Conversation
738c5ce
to
c978a03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This PR can be merged once we get the webpack3 in.
@@ -199,7 +199,12 @@ const production = config => addPlugins([ | |||
/push-manifest\.json$/, | |||
/.DS_Store/ | |||
] | |||
}) | |||
}), | |||
new webpack.DefinePlugin({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had posted in chat about this but I'll echo here for visibility - does the object form here replace as optimally as this?
new webpack.DefinePlugin({
'process.env.ADD_SW': config.serviceWorker
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe yargs
will have camelCased the flag name at this point.
@prateekbh Have you checked/ran this? This was my thought as well.
c978a03
to
7523fbb
Compare
@developit @lukeed it worked for me bothways with and without camel casing |
btw made suggested changes, is it ready to merge yet? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
fixes #371