adambullmer / vue-cli-plugin-browser-extension

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

Fix optimization #68

Closed adambullmer closed 4 years ago

adambullmer commented 4 years ago

Looks to be that vue's base configs have started to include some optimizations in development modes as well. This PR expands on the detection and attempts to keep it without error in case any more surprises come up. These user scripts (background and content scripts) cannot load multiple files to take advantage of codesplitting, so these need to be removed from optimizations always.