@lotte-innovate/ui-component-test 0.2.8 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+
4
+ function copyFile(src, dest) {
5
+ const destDir = path.dirname(dest);
6
+
7
+ if (!fs.existsSync(destDir)) {
8
+ fs.mkdirSync(destDir, { recursive: true });
9
+ }
10
+
11
+ fs.copyFileSync(src, dest);
12
+ console.log(`tinymce 리소스 복사 완료`);
13
+ }
14
+
15
+ // skins 파일도 같이 배포 <= 이 경로로 sourceFile 바라보게 !!!
16
+ const sourceFile = 'public/tinymce/skins/ui/oxide/content.min.css';
17
+ const destinationFile = 'public/tinymce/skins/ui/oxide/content.min.css';
18
+
19
+ copyFile(sourceFile, destinationFile);