mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 21:28:34 +08:00
0d9b43206c
* feat: load vditor dep from local * fix: plugin-field-markdown-vditor build config * Revert "fix: plugin-field-markdown-vditor build config" This reverts commit 60d344d3402e0da916c918f65c81b1cd734fa3ce. * feat: plugin-field-markdown-vditor: use NODE_ENV * fix: plugin-field-markdown-vdtor dep preload * fix: plugin-field-markdown-vdtor dep preload * fix: plugin-field-markdown-vdtor dep preload * feat: plugin-field-markdown-vditor set default valut for edit * fix: cdn * fix: set vditor editor value after create * fix: cdn --------- Co-authored-by: chenos <chenlinxh@gmail.com>
16 lines
390 B
TypeScript
16 lines
390 B
TypeScript
import { defineConfig } from '@nocobase/build';
|
|
import fs from 'fs/promises';
|
|
import path from 'path';
|
|
|
|
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,
|
|
});
|
|
},
|
|
});
|