|
6 | 6 | "author": "zeon.studio", |
7 | 7 | "scripts": { |
8 | 8 | "dev": "hugo server", |
9 | | - "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", |
| 9 | + "build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic && npm run babel", |
10 | 10 | "preview": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify", |
11 | 11 | "dev:example": "cd exampleSite && hugo server", |
12 | 12 | "build:example": "cd exampleSite && hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic", |
|
16 | 16 | "project-setup": "node ./scripts/projectSetup.js", |
17 | 17 | "theme-setup": "node ./scripts/themeSetup.js", |
18 | 18 | "update-theme": "node ./scripts/themeUpdate.js", |
19 | | - "format": "prettier -w ." |
| 19 | + "format": "prettier -w .", |
| 20 | + "babel": "npx babel public --out-dir public --extensions \".js,.mjs,.cjs\" --ignore public/service-worker.js" |
20 | 21 | }, |
21 | 22 | "devDependencies": { |
| 23 | + "@babel/cli": "^7.27.2", |
| 24 | + "@babel/core": "^7.27.4", |
| 25 | + "@babel/preset-env": "^7.27.2", |
22 | 26 | "@tailwindcss/cli": "^4.0.14", |
23 | 27 | "@tailwindcss/forms": "^0.5.10", |
24 | 28 | "@tailwindcss/typography": "^0.5.16", |
25 | 29 | "prettier": "^3.5.3", |
26 | 30 | "prettier-plugin-go-template": "0.0.15", |
27 | 31 | "prettier-plugin-tailwindcss": "^0.6.11", |
28 | 32 | "tailwindcss": "^4.0.14" |
29 | | - } |
| 33 | + }, |
| 34 | + "browserslist": [ |
| 35 | + ">0.5%", |
| 36 | + "last 2 versions", |
| 37 | + "Firefox ESR", |
| 38 | + "not dead" |
| 39 | + ] |
30 | 40 | } |
0 commit comments