File size: 590 Bytes
4d70170
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const path = require('node:path')
const { createConfig } = require('@vue-devtools/build-tools')

module.exports = createConfig({
  entry: {
    'hook': './src/hook.js',
    'devtools': './src/devtools.js',
    'background': './src/background.js',
    'devtools-background': './src/devtools-background.js',
    'backend': './src/backend.js',
    'proxy': './src/proxy.js',
    'detector': './src/detector.js',
  },
  output: {
    path: path.join(__dirname, 'build'),
    filename: '[name].js',
  },
  devtool: process.env.NODE_ENV !== 'production'
    ? 'inline-source-map'
    : false,
})