Skip to content

adamjberg/esbuild-plugin-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-plugin-pug

Import plugin for pug (and jade) files for esbuild

Install

npm i -D esbuild-plugin-pug

Use

const pugPlugin = require('esbuild-plugin-pug');

require('esbuild')
  .build({
    entryPoints: ['src/index.ts'],
    bundle: true,
    platform: "node",
    outfile: 'built/pug.js',
    plugins: [
      pugPlugin()
    ],
  })
  .catch(() => process.exit(1));

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published