diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | rollup.config.js | 2 |
3 files changed, 4 insertions, 0 deletions
| @@ -4,3 +4,4 @@ package-lock.json | |||
| 4 | pnpm-lock.yaml | 4 | pnpm-lock.yaml |
| 5 | mapclay | 5 | mapclay |
| 6 | src/css/easymde.min.css | 6 | src/css/easymde.min.css |
| 7 | stats.html | ||
diff --git a/package.json b/package.json index 48717fc..9ee1a77 100644 --- a/package.json +++ b/package.json | |||
| @@ -44,6 +44,7 @@ | |||
| 44 | "eslint-plugin-promise": "^7.1.0", | 44 | "eslint-plugin-promise": "^7.1.0", |
| 45 | "globals": "^15.9.0", | 45 | "globals": "^15.9.0", |
| 46 | "rollup": "^4.21.3", | 46 | "rollup": "^4.21.3", |
| 47 | "rollup-plugin-bundle-stats": "^4.15.1", | ||
| 47 | "stylelint": "^16.9.0", | 48 | "stylelint": "^16.9.0", |
| 48 | "stylelint-config-standard": "^36.0.1", | 49 | "stylelint-config-standard": "^36.0.1", |
| 49 | "stylelint-order": "^6.0.4" | 50 | "stylelint-order": "^6.0.4" |
diff --git a/rollup.config.js b/rollup.config.js index 1f46f2a..75db905 100644 --- a/rollup.config.js +++ b/rollup.config.js | |||
| @@ -3,6 +3,7 @@ import commonjs from '@rollup/plugin-commonjs'; | |||
| 3 | import terser from '@rollup/plugin-terser'; | 3 | import terser from '@rollup/plugin-terser'; |
| 4 | import { existsSync } from 'fs'; | 4 | import { existsSync } from 'fs'; |
| 5 | import { join } from 'path'; | 5 | import { join } from 'path'; |
| 6 | import { bundleStats } from 'rollup-plugin-bundle-stats'; | ||
| 6 | 7 | ||
| 7 | const production = !process.env.ROLLUP_WATCH; | 8 | const production = !process.env.ROLLUP_WATCH; |
| 8 | 9 | ||
| @@ -53,6 +54,7 @@ const general = { | |||
| 53 | node(), | 54 | node(), |
| 54 | commonjs(), | 55 | commonjs(), |
| 55 | production && terser(), | 56 | production && terser(), |
| 57 | // bundleStats(), | ||
| 56 | ], | 58 | ], |
| 57 | } | 59 | } |
| 58 | 60 | ||