sealday
d99bd8f4a5
Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#1184
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
import fs from 'fs/promises';
|
|
import path from 'path';
|
|
import { defineConfig } from '@tachybase/build';
|
|
|
|
const vditor = path.dirname(require.resolve('vditor'));
|
|
|
|
export default defineConfig({
|
|
afterBuild: async (log) => {
|
|
log('coping vditor dist');
|
|
await fs.cp(vditor, path.resolve(__dirname, 'dist/client/vditor/dist'), {
|
|
recursive: true,
|
|
force: true,
|
|
});
|
|
},
|
|
});
|