You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server/plugins/com.msgbyte.livekit/.ministarrc.js

38 lines
860 B
JavaScript

const path = require('path');
const copy = require('rollup-plugin-copy');
const normalize = require('normalize-path');
const pluginRoot = path.resolve(__dirname, './web');
const outDir = path.resolve(__dirname, '../../public');
module.exports = {
externalDeps: [
'react',
'react-router',
'axios',
'styled-components',
'zustand',
'zustand/middleware/immer',
],
pluginRoot,
outDir,
rollupPlugins: ({ pluginName }) => [
copy({
targets: [
{
src: path.resolve(
pluginRoot,
`./plugins/${pluginName}`,
'./assets/**/*'
),
dest: path.resolve(outDir, `./plugins/${pluginName}/assets/`),
},
].map((item) => ({
// For windows
src: normalize(item.src),
dest: normalize(item.dest, false),
})),
}),
],
};