webpack-userscript icon indicating copy to clipboard operation
webpack-userscript copied to clipboard

Raw header support?

Open myocytebd opened this issue 1 year ago • 1 comments

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.

myocytebd avatar Feb 10 '25 11:02 myocytebd

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.

momocow avatar Apr 22 '25 03:04 momocow