Skip to content

Latest commit

 

History

History

hexo-esbuild

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

hexo-esbuild

GitHub Tag GitHub Release GitHub commits since latest release GitHub top language Coverage Status CI Libraries.io dependency status for GitHub repo

Minify JavaScripts, CSS files via esbuild Transformer.

Install

NPM Version node-lts NPM License NPM Downloads NPM Downloads Libraries.io dependency status for latest release

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"