https://github.com/uiolee/hexo-esbuild
Minify JavaScripts, CSS files via esbuild.
https://github.com/uiolee/hexo-esbuild
esbuild hexo hexo-plugin javascripts minify
Last synced: 24 days ago
JSON representation
Minify JavaScripts, CSS files via esbuild.
- Host: GitHub
- URL: https://github.com/uiolee/hexo-esbuild
- Owner: uiolee
- License: mpl-2.0
- Created: 2024-02-01T13:20:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-10T16:10:51.000Z (12 months ago)
- Last Synced: 2025-05-15T23:42:36.852Z (10 months ago)
- Topics: esbuild, hexo, hexo-plugin, javascripts, minify
- Language: TypeScript
- Homepage: https://npmjs.com/hexo-esbuild
- Size: 457 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-esbuild
[](https://github.com/uiolee/hexo-esbuild/tags)
[](https://github.com/uiolee/hexo-esbuild/releases)
[](https://github.com/uiolee/hexo-esbuild/compare/...main)
[](#hexo-esbuild)
[](https://coveralls.io/github/uiolee/hexo-esbuild?branch=main)
[](https://github.com/uiolee/hexo-esbuild/actions/workflows/ci.yml)
[](https://libraries.io/github/uiolee/hexo-esbuild#dependencies)
Minify JavaScripts, CSS files via [esbuild](https://esbuild.github.io) [Transformer](https://esbuild.github.io/api/#transform).
## Install
[](https://www.npmjs.com/package/hexo-esbuild)
[](https://nodejs.org/)
[](./LICENSE)
[](#hexo-esbuild)
[](#hexo-esbuild)
[](https://libraries.io/npm/hexo-esbuild/tree)
```bash
pnpm add hexo-esbuild
# npm i hexo-esbuild
```
## Configuration
### Default Configuration
> Defined in [src/default_config.ts](src/default_config.ts)
```yaml
hexo_esbuild:
enable: true
js:
enable: true
after_render: "js" # hexo filter hook. support https://hexo.io/api/filter#after-render
priority: 999 # hexo filter priority. Lower priority means that it will be executed first
exclude:
- "**.min.js"
esbuildTransformOptions: # the esbuild transform options. https://esbuild.github.io/api/#transform
loader: "js"
minify: true
logLevel: "warning"
css:
enable: true
after_render: "css"
priority: 999
exclude:
- "**.min.css"
esbuildTransformOptions:
loader: "css"
minify: true
logLevel: "warning"
```