@bluenyang/create-tistory-skin 1.0.6 → 1.0.7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluenyang/create-tistory-skin",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Tistory Skin Previewer 템플릿 생성기",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,6 +12,9 @@
12
12
  "astro": "^5.18.0"
13
13
  },
14
14
  "devDependencies": {
15
+ "@rollup/plugin-node-resolve": "^16.0.1",
16
+ "@rollup/plugin-terser": "^1.0.0",
17
+ "@rollup/plugin-typescript": "^12.1.4",
15
18
  "@tailwindcss/postcss": "^4.1.11",
16
19
  "@tailwindcss/vite": "^4.1.11",
17
20
  "@tistory-skin-previewer/astro": "^1.0.1",
@@ -23,6 +26,7 @@
23
26
  "prettier": "^3.8.1",
24
27
  "prettier-plugin-astro": "^0.14.1",
25
28
  "prettier-plugin-tailwindcss": "^0.6.14",
29
+ "rollup": "^4.44.2",
26
30
  "tailwindcss": "^4.1.11",
27
31
  "typescript": "^5.8.3",
28
32
  "typescript-eslint": "^8.36.0"
@@ -0,0 +1,26 @@
1
+ import typescript from "@rollup/plugin-typescript";
2
+ import { nodeResolve } from "@rollup/plugin-node-resolve";
3
+ import terser from "@rollup/plugin-terser";
4
+
5
+ export default {
6
+ input: "src/scripts/common.ts",
7
+ output: {
8
+ dir: "dist/images",
9
+ format: "iife",
10
+ sourcemap: false,
11
+ },
12
+ plugins: [
13
+ nodeResolve(),
14
+ typescript({
15
+ tsconfig: "./tsconfig.json",
16
+ }),
17
+ terser({
18
+ mangle: {
19
+ toplevel: true,
20
+ },
21
+ compress: {
22
+ drop_console: true,
23
+ },
24
+ }),
25
+ ],
26
+ };