Add --webextension option to command line
The --webextension option will automatically add webextension-polyfill to your extension by default as discussed in #1
Please don't merge this PR yet.
As most of the users would want their extension to work cross-browser, I was thinking of keeping WebExtension as a built-in support and not enable it through an option from command line.
What do you think?
Good point. However if WebExtensions will be enabled by default that will break backward compatibility (eg. if someone already used the cli to generate a project and uses it again the new version the outputs will differ). It might be not a big deal, just a thing to consider.
I don't think this change will break existing code since we are adding a new feature and not replacing.
And while releasing it we are going to mention it in our changelog file, so that user can know the version from which WebExtensions support was introduced.
Alright @dutiyesh ! Should I then change it to something like --no-webextension in case somebody wants to build an extension without Webextension support?
How about --no-cross-browser?
It is a generic term and hides the implementation details (WebExtension API) behind disabling cross-browser support.
@dutiyesh I like it! Lets go with --no-cross-browser
@dutiyesh I think the PR is ready, I will test the generated outputs tomorrow. In the meantime, please have a look at it
Hi! Any news on this? Thanks!