in packages/project-workflow-rules-list/vite.config.ts [10:57]
export default defineConfig({
plugins: [
react(),
viteStaticCopy({
targets: [
{
src: '../manifest.json',
dest: '.'
},
{
src: '*.*',
dest: '.'
},
{
src: '../public/*.*',
dest: '.'
}
]
}),
viteStaticCopy({
targets: [
// Widget icons and configurations
{
src: 'widgets/**/*.{svg,png,jpg,json}',
dest: '.'
}
],
structured: true
})
],
root: './src',
base: '',
publicDir: 'public',
build: {
outDir: '../dist',
emptyOutDir: true,
copyPublicDir: false,
target: ['es2022'],
assetsDir: 'widgets/assets',
rollupOptions: {
input: {
// List every widget entry point here
widget: resolve(__dirname, 'src/widgets/workflow-rules-widget/index.html'),
}
}
}
});