File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ const { exec } = require('child_process')
44const logger = require ( '@vue/cli-shared-utils' )
55const webpack = require ( 'webpack' )
66const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
7- const ChromeExtensionReloader = require ( 'webpack-chrome-extension-reloader' )
87const ZipPlugin = require ( 'zip-webpack-plugin' )
98const defaultOptions = { components : { } }
109
@@ -97,13 +96,14 @@ module.exports = (api, options) => {
9796 } ) )
9897 }
9998
100- if ( isDevelopment ) {
99+ if ( options . api === 'chrome' && isDevelopment ) {
101100 const entries = { background : 'background' }
102101
103102 if ( pluginOptions . components . contentScript ) {
104103 entries . contentScript = 'content-script'
105104 }
106105
106+ const ChromeExtensionReloader = require ( 'webpack-chrome-extension-reloader' )
107107 webpackConfig . plugins . push ( new ChromeExtensionReloader ( { entries } ) )
108108 }
109109 } )
You can’t perform that action at this time.
0 commit comments