Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 2.08 KB

README.md

File metadata and controls

59 lines (48 loc) · 2.08 KB

@mspg/transpile-pug

NPM version Linux Build Status Windows Build Status Coverage Status Greenkeeper badge

transpiles pug to html, then uses html-minifier on the result and returns it.

Installation:
npm install @mspg/transpile-pug
Usage:

First set up a mspg project.

then, in src/config.js

  const HTML = require('@mspg/pug')

  module.exports = {
    TRANSPILERS: {
      HTML,
    },
  }
src directory stylus

you should not rename the html files in the /src directory, you can just use pug in them now.

includes

You can also use the /includes/html directory to create *.pug files and include/extend them from the html files in /src.

example app

a minimal example app is in the example directory of this repository, using config.js from the root directory

example app on github.io

the example app is published to the gh-pages branch. it is hosted @ https://mspg.github.io/transpile-pug