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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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);