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

Use NODE_ENV instead of api.service.mode #70

Closed franciscolourenco closed 4 years ago

franciscolourenco commented 4 years ago

According to the Vue CLI docs, "staging" and other production-like envs can be used by setting the mode to staging, and setting NODE_ENV=production.

Currently vue-cli-plugin-browser-extension relies on mode being 'production' or in adding other modes to pluginOptions.browserExtension.modesToZip.

Perhaps it would make more sense to rely on NODE_ENV=production so that the plugin works like Vue CLI.

image