0.0.3 • Published 8 years ago

pug-static-to-html-loader v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

pug-static-to-html-loader

Purpose:

A simple webpack loader to convert the output of pug-static-loader to something html-loader can use.

Output of pug-static-loader before:

"module.exports = \"\\n<h1>My First Angular 2 App</h1>\"";

After using this loader:

"<h1>My First Angular 2 App</h1>";

Install:

The usual npm install --save-dev pug-static-to-html-loader.

Usage:

Use it in your webpack.config.js like this:

module: {
  loaders: [{
    test: /\.pug$/,
    loaders: [ 'html', 'pug-static-to-html', 'pug-static' ]
  }]
}