ninegrid2 6.1285.0 → 6.1286.0
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.
- package/package.json +1 -1
- package/rollup.config.js +17 -11
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -3,6 +3,7 @@ import commonjs from "@rollup/plugin-commonjs";
|
|
|
3
3
|
import postcss from 'rollup-plugin-postcss';
|
|
4
4
|
import json from '@rollup/plugin-json';
|
|
5
5
|
import url from '@rollup/plugin-url';
|
|
6
|
+
// string 대신 텍스트 처리가 더 확실한 raw 플러그인이나 설정을 사용합니다.
|
|
6
7
|
import { string } from 'rollup-plugin-string';
|
|
7
8
|
|
|
8
9
|
export default {
|
|
@@ -23,36 +24,41 @@ export default {
|
|
|
23
24
|
],
|
|
24
25
|
external: [],
|
|
25
26
|
plugins: [
|
|
26
|
-
// 1. JSON
|
|
27
|
+
// 1. JSON (최상단 유지)
|
|
27
28
|
json(),
|
|
28
29
|
|
|
29
|
-
// 2. SVG
|
|
30
|
+
// 2. SVG 처리 (순수 문자열로 읽기)
|
|
31
|
+
// CKEditor 5 아이콘 에러 해결의 핵심입니다.
|
|
30
32
|
string({
|
|
31
33
|
include: '**/*.svg',
|
|
32
34
|
}),
|
|
33
35
|
|
|
34
|
-
// 3. 이미지
|
|
36
|
+
// 3. 이미지 에셋 (SVG는 제외시켜서 충돌 방지)
|
|
35
37
|
url({
|
|
38
|
+
exclude: '**/*.svg', // ⭐ SVG는 위에서 string이 처리하도록 제외
|
|
36
39
|
include: ['**/*.png', '**/*.jpg', '**/*.gif'],
|
|
37
40
|
limit: 8192,
|
|
38
41
|
}),
|
|
39
42
|
|
|
40
|
-
// 4. CSS
|
|
43
|
+
// 4. CSS
|
|
41
44
|
postcss({
|
|
42
|
-
extract: false,
|
|
45
|
+
extract: false,
|
|
43
46
|
minimize: true,
|
|
44
|
-
// CKEditor는 Sass를 쓰지 않으므로 필요 없다면 생략 가능하지만,
|
|
45
|
-
// 기존 설정 유지 및 범용성을 위해 남겨둡니다.
|
|
46
47
|
use: ['sass'],
|
|
47
48
|
}),
|
|
48
49
|
|
|
49
|
-
// 5.
|
|
50
|
+
// 5. 해석 (browser: true 옵션은 CKEditor 모듈 해석에 필수)
|
|
50
51
|
resolve({
|
|
51
52
|
browser: true,
|
|
52
|
-
preferBuiltins: false
|
|
53
|
+
preferBuiltins: false,
|
|
54
|
+
// CKEditor는 'main' 대신 'module' 필드를 사용하는 경우가 많습니다.
|
|
55
|
+
mainFields: ['module', 'main']
|
|
53
56
|
}),
|
|
54
57
|
|
|
55
|
-
// 6. CommonJS
|
|
56
|
-
commonjs(
|
|
58
|
+
// 6. CommonJS
|
|
59
|
+
commonjs({
|
|
60
|
+
// CKEditor 아이콘(SVG)이 JS 모듈로 오해받지 않도록 범위 설정
|
|
61
|
+
include: /node_modules/,
|
|
62
|
+
}),
|
|
57
63
|
]
|
|
58
64
|
};
|