mirror of https://github.com/msgbyte/tailchat
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.
21 lines
447 B
JavaScript
21 lines
447 B
JavaScript
4 years ago
|
const copy = require('rollup-plugin-copy');
|
||
|
const path = require('path');
|
||
|
|
||
|
module.exports = {
|
||
|
externalDeps: ['react'],
|
||
|
rollupPlugins: ({ pluginName }) => [
|
||
|
copy({
|
||
|
targets: [
|
||
|
{
|
||
|
src: path.resolve(
|
||
|
__dirname,
|
||
|
`./plugins/${pluginName}`,
|
||
|
'./assets/**/*'
|
||
|
),
|
||
|
dest: path.resolve(__dirname, `./dist/plugins/${pluginName}/public/`),
|
||
|
},
|
||
|
],
|
||
|
}),
|
||
|
],
|
||
|
};
|