pug transform for browserify v2. Sourcemaps generation included.
Configuration
If you are using pugify programatically, you can pass options to the Pug compiler by
calling pug() on the pugify transform:
var b = browserify(); b.transform(require('pugify').pug({ pretty: false }));
If you are using pugify in a command line build, you can pass parameters by adding a
"pugify" section to your package.json. You can either include parameters directly:
"pugify": { "pretty": false }
or for more complicated cases you can reference a .js file: