2.0.0 • Published 5 months ago

hexo-esbuild v2.0.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
5 months ago

hexo-esbuild

Transform JavaScript, CSS, TypeScript, and JSX files via esbuild Transformer API.

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 # boolean. enable hexo-esbuild.
  js: # the filter option for js.
    enable: true # boolean. enable js filter.
    after_render: "js" # string. hexo filter hook. support https://hexo.io/api/filter#after-render
    priority: 999 # number. hexo filter priority. Lower priority means that it will be executed first
    exclude: # Array<string>. exclude files to be transformed. which will be passed to `micromatch`.
      - "**.min.js"
    esbuildTransformOptions: # the TransformOptions of esbuild. 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"
# add more configuration if you want.
2.0.0

5 months ago

1.0.0-test.0

9 months ago

1.0.0

9 months ago

0.1.0

1 year ago