soiz1's picture
Upload folder using huggingface_hub
4d70170 verified
raw
history blame contribute delete
616 Bytes
const path = require('node:path')
const { createConfig } = require('@vue-devtools/build-tools')
const target = {
chrome: 52,
firefox: 48,
safari: 9,
ie: 11,
}
module.exports = createConfig({
target: 'node',
externals: {
// from https://socket.io/docs/v4/client-with-bundlers/
'bufferutil': 'bufferutil',
'utf-8-validate': 'utf-8-validate',
},
entry: {
devtools: './src/devtools.js',
backend: './src/backend.js',
hook: './src/hook.js',
},
output: {
path: path.join(__dirname, '/build-node'),
publicPath: '/build-node/',
filename: '[name].js',
},
}, target)