webpack-userscript
webpack-userscript copied to clipboard
Raw header support?
Does this plugin support raw header in webpack entry file or standalone metajs? I expected it to extract the userscript header from entry file and prepend to webpack output, but it didn't.
Does this plugin support raw header in webpack entry file or standalone metajs?
No, it doesn't, for now at least.
It reads headers according to the headers option provided to the plugin, and here is how headers option is resolved via 4 types of loaders.
If such feature is requested, it is possible to implement a new loader to read headers from raw headers in entry file or metajs.