Skip to content

Commit

Permalink
Merge remote-tracking branch 'etrepum/copy-excalidraw-assets' into ta…
Browse files Browse the repository at this point in the history
…ble-cell-action-button-selection
  • Loading branch information
etrepum committed Nov 23, 2024
2 parents adf0b5e + ab6aeed commit 6193ad7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/lexical-playground/viteCopyExcalidrawAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type {Plugin} from 'vite';

import {createRequire} from 'node:module';
import * as path from 'node:path';
import {normalizePath} from 'vite';
import {Target, viteStaticCopy} from 'vite-plugin-static-copy';

const require = createRequire(import.meta.url);
Expand All @@ -27,11 +28,13 @@ export default function viteCopyExcalidrawAssets(): Plugin[] {
return [
{
dest: `${assetDir}/`,
src: [path.join(srcDir, '*.js'), path.join(srcDir, '*.woff2')],
src: [path.join(srcDir, '*.js'), path.join(srcDir, '*.woff2')].map(
normalizePath,
),
},
{
dest: `${assetDir}/locales/`,
src: [path.join(srcDir, 'locales', '*.js')],
src: [path.join(srcDir, 'locales', '*.js')].map(normalizePath),
},
];
});
Expand Down

0 comments on commit 6193ad7

Please sign in to comment.