File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const { exec } = require('child_process')
44const logger = require ( '@vue/cli-shared-utils' )
55const webpack = require ( 'webpack' )
66const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
7+ const ExtensionReloader = require ( 'webpack-extension-reloader' )
78const ZipPlugin = require ( 'zip-webpack-plugin' )
89const defaultOptions = {
910 components : { } ,
@@ -156,7 +157,8 @@ module.exports = (api, options) => {
156157 if ( pluginOptions . components . contentScripts ) {
157158 entries . contentScript = Object . keys ( componentOptions . contentScripts . entries )
158159 }
159- const ExtensionReloader = require ( 'webpack-extension-reloader' )
160- webpackConfig . plugins . push ( new ExtensionReloader ( { entries } ) )
160+ if ( ! isProduction ) {
161+ webpackConfig . plugins . push ( new ExtensionReloader ( { entries } ) )
162+ }
161163 } )
162164}
You can’t perform that action at this time.
0 commit comments