-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Convert plugin to loader #4
Comments
oh cool. I will work on it. This will cause breaking changes but still it seems to be worth it. will have to deprecate this as well. |
This is infact an awesome idea that not only improves its function but also adds the manifest.json reloadabilty(which it lacked in the starter project) |
@fregante what do you suggest as to read the version field for the extension? Currently it uses package.json file version. Or is it better to just add version property to manifest.json? |
👍 Generally I use |
@fregante Caveats that I found so far
Loader now works with I builds Unless having a plugin in webpack, I don't think the emitting of I can write a plugin to do this. Do you have any better suggestions? |
Yeah this might not be as easy as I thought, but I think this loader can generate files with the right extension: https://github.com/peerigon/extract-loader/blob/master/README.md |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
convert to webpack loader (#4)
@fregante The loader emits correctly like you asked for. I have build a plugin to remove the Here is the plugin: https://github.com/abhijithvijayan/wext-manifest-webpack-plugin The loader is released to: https://www.npmjs.com/package/wext-manifest-loader The only additional optional feature I will add to this loader will be the ability to take version from I will deprecate the Checkout the readme example for the usage I hope you can use these in https://github.com/sindresorhus/refined-github once you verify if everything works like you asked for. |
Closing. |
Instead of having the manifest inside webpack.config.js, webpack should just read the input json file and output it transformed. Something like:
The text was updated successfully, but these errors were encountered: