adambullmer / vue-cli-plugin-browser-extension

Browser extension development plugin for vue-cli 3.0
GNU Lesser General Public License v3.0
427 stars 76 forks source link

Disable hashed URL params in chunk filenames #17

Closed siphomateke closed 6 years ago

siphomateke commented 6 years ago

The hashes were causing issues in the zipped output. Since the hashes were only being added to the zipped output, they have been removed entirely.

adambullmer commented 6 years ago

It's entirely possible that in extensions, these hashes for cache busting / fingerprinting aren't necessary, but could you explain a little more about the issue you were having?

siphomateke commented 6 years ago

Sorry, I should have described the issue I was having.

In the zipped output, the JS files have hashes attached to the end of their file names. For example, chunk-vendors.chunk-vendors.js?c6155ba6. If you open the zipped extension in Chrome, you get the error

Failed to load resource: net::ERR_FILE_NOT_FOUND chrome-extension://ndlggceocebjblpfabdlekeijniiagkf/js/chunk-vendors.chunk-vendors.js?c6155ba6

or in Firefox

Loading failed for the Githubissues.

  • Githubissues is a development platform for aggregating issues.