pug-static-to-html-loader
v0.0.3
Published
webpack loader to convert 'pug-static-loader' output to valid 'html-loader' input
Downloads
10
Readme
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' ]
}]
}