const path = require('path');

function resolvePath(pathToResolve) {
  return path.resolve(__dirname, pathToResolve);
}

module.exports = {
  lintOnSave: false,

  pages: {
    'index': {
      entry: 'src/main.js',
      chunks: ['chunk-vendors', 'chunk-common', 'index', 'preload'],
    },
  },

  pluginOptions: {
    browserExtension: {
      components: {
        background: true,
        options: true,
        standalone: true,
      },
      api: 'browser',
      usePolyfill: true,
      autoImportPolyfill: true,
      componentOptions: {
        background: {
          entry: 'src/browser/background.js',
        },
      },
    },
  },

  chainWebpack: (config) => {
    config.resolve.alias.set('styles', resolvePath('src/styles'));
    config.entry('preload').add(resolvePath('src/styles/preload.scss'));
  },

  configureWebpack: {
    node: {
      global: true,
    },
  },
};

@@ -295,361 +295,8 @@
 %7D,%0A%0A
-  pluginOptions: %7B%0A    browserExtension: %7B%0A      components: %7B%0A        background: true,%0A        options: true,%0A        standalone: true,%0A      %7D,%0A      api: 'browser',%0A      usePolyfill: true,%0A      autoImportPolyfill: true,%0A      componentOptions: %7B%0A        background: %7B%0A          entry: 'src/browser/background.js',%0A        %7D,%0A      %7D,%0A    %7D,%0A  %7D,%0A%0A
   ch

Remove browser extension plugin options