hexo-esbuild

0.1.0 • Public • Published

hexo-esbuild

Minify JavaScripts, CSS files via esbuild Transformer.

Install

pnpm add hexo-esbuild

# npm i hexo-esbuild

Configuration

Default Configuration

Defined in src/default_config.ts

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"

Package Sidebar

Install

npm i hexo-esbuild

Weekly Downloads

1

Version

0.1.0

License

MPL-2.0

Unpacked Size

21.1 kB

Total Files

4

Last publish

Collaborators

  • uiolee