package
browserify v2 plugin for pug with sourcemaps support
npm install pugifyGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
pug transform for browserify v2. Sourcemaps generation included.

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:
"pugify": "./assets/pugify-config.js"And then in pugify-config.js:
module.exports = {
pretty: (process.env.NODE_ENV == 'production') ? true : false
};To disable sourcemap generation, which results in smaller compiled files for production builds,
set pug option compileDebug to false in the options:
var b = browserify();
b.transform(require('pugify').pug({
compileDebug: false
}));or in package.json:
"pugify": {
"compileDebug": false
}tellnes
christian@tellnes.no
Estimated unpacked size across 31 packages.
1.3 MB
Includes dependencies.
5 direct · 2 outdated
^2.0.0-beta6
3.0.4
^2.3.8
2.3.8
^0.5.6
0.8.0
~1.3.0
2.0.0
1.7.0