{"_id":"pug-loader","_rev":"79320","name":"pug-loader","description":"Pug loader module for webpack","dist-tags":{"latest":"2.4.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"time":{"modified":"2021-06-03T10:25:23.000Z","created":"2015-12-12T00:42:49.356Z","2.4.0":"2018-03-29T17:45:26.373Z","2.3.0":"2016-08-23T01:27:44.394Z","2.2.1":"2016-08-06T17:54:54.368Z","2.2.0":"2016-08-06T17:33:31.784Z","2.1.0":"2016-07-25T04:27:31.751Z","2.0.0":"2016-07-25T03:39:27.595Z","1.0.2":"2016-04-17T12:29:48.609Z","1.0.1":"2016-04-03T13:55:37.823Z","1.0.0":"2015-12-23T04:26:40.335Z","0.0.0":"2015-12-12T00:42:49.356Z"},"users":{"fchienvuhoang":true,"shoonia":true,"mbaer":true,"nickolas_sv":true,"matiasmarani":true,"yeming":true,"paulkolesnyk":true,"ackerapple":true,"smtnkc":true},"author":{"name":"Tobias Koppers @sokra"},"repository":{"type":"git","url":"git://github.com/pugjs/pug-loader.git"},"versions":{"2.4.0":{"name":"pug-loader","version":"2.4.0","author":{"name":"Tobias Koppers @sokra"},"description":"Pug loader module for webpack","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dependencies":{"loader-utils":"^1.1.0","pug-walk":"^1.0.0","resolve":"^1.1.7"},"peerDependencies":{"pug":"^2.0.0"},"devDependencies":{"mocha":"*","pug":"^2.0.0","should":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/pugjs/pug-loader.git"},"license":"MIT","gitHead":"10a9d3694d6082d801e32c8e65cdf0346706e15c","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@2.4.0","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"18eebdda045d9c31c2856f1cc3ceb8d3df7ca49a","size":4123,"noattachment":false,"key":"/pug-loader/-/pug-loader-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-2.4.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-loader_2.4.0_1522345526287_0.1700494391927354"},"_hasShrinkwrap":false,"publish_time":1522345526373,"_cnpm_publish_time":1522345526373},"2.3.0":{"name":"pug-loader","version":"2.3.0","author":{"name":"Tobias Koppers @sokra"},"description":"Pug loader module for Webpack","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dependencies":{"loader-utils":"~0.2.5","pug-walk":"^1.0.0","resolve":"^1.1.7"},"peerDependencies":{"pug":">=2.0.0-beta3 <3"},"devDependencies":{"mocha":"*","pug":"^2.0.0-beta4","should":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/pugjs/pug-loader.git"},"license":"MIT","gitHead":"2a1895011ad89f2f05676c90dafc07505f5a885b","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@2.3.0","_shasum":"b869294413a2218f0a7dd92a953e592283676c10","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"b869294413a2218f0a7dd92a953e592283676c10","size":4109,"noattachment":false,"key":"/pug-loader/-/pug-loader-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-2.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pug-loader-2.3.0.tgz_1471915661284_0.08231543679721653"},"directories":{},"publish_time":1471915664394,"_cnpm_publish_time":1471915664394,"_hasShrinkwrap":false},"2.2.1":{"name":"pug-loader","version":"2.2.1","author":{"name":"Tobias Koppers @sokra"},"description":"Pug loader module for Webpack","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dependencies":{"loader-utils":"~0.2.5","resolve":"^1.1.7"},"peerDependencies":{"pug":">=2.0.0-beta3 <3"},"devDependencies":{"mocha":"*","pug":"^2.0.0-beta4","should":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/pugjs/pug-loader.git"},"license":"MIT","gitHead":"572e3d93eab49998d81688fff6b2dcf2e024ecd2","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@2.2.1","_shasum":"f169712c264c1ed315ed8e0990f25fc4f359be6c","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"f169712c264c1ed315ed8e0990f25fc4f359be6c","size":5132,"noattachment":false,"key":"/pug-loader/-/pug-loader-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-2.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pug-loader-2.2.1.tgz_1470506091089_0.14218205003999174"},"directories":{},"publish_time":1470506094368,"_cnpm_publish_time":1470506094368,"_hasShrinkwrap":false},"2.2.0":{"name":"pug-loader","version":"2.2.0","author":{"name":"Tobias Koppers @sokra"},"description":"Pug loader module for Webpack","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dependencies":{"loader-utils":"~0.2.5","resolve":"^1.1.7"},"peerDependencies":{"pug":">=2.0.0-beta3 <3"},"devDependencies":{"mocha":"*","pug":"^2.0.0-beta4","should":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/pugjs/pug-loader.git"},"license":"MIT","gitHead":"5972b3c2c10c130984a7a3e827c1751483219be8","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@2.2.0","_shasum":"709afbbfcfaf6504c62ee2c24313121284d215a1","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"709afbbfcfaf6504c62ee2c24313121284d215a1","size":5108,"noattachment":false,"key":"/pug-loader/-/pug-loader-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-2.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-loader-2.2.0.tgz_1470504811560_0.21598872798494995"},"directories":{},"publish_time":1470504811784,"_cnpm_publish_time":1470504811784,"_hasShrinkwrap":false},"2.1.0":{"name":"pug-loader","version":"2.1.0","author":{"name":"Tobias Koppers @sokra"},"description":"Pug loader module for Webpack","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dependencies":{"loader-utils":"~0.2.5","resolve":"^1.1.7"},"peerDependencies":{"pug":">=2.0.0-beta3 <3"},"devDependencies":{"mocha":"*","pug":"^2.0.0-beta4","should":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/pugjs/pug-loader.git"},"license":"MIT","gitHead":"a26ff34a3b9468c1727543d941090a98f529c072","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@2.1.0","_shasum":"79c260ab9d4641d2908a9dcf7f939dfc423b19ea","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"79c260ab9d4641d2908a9dcf7f939dfc423b19ea","size":4988,"noattachment":false,"key":"/pug-loader/-/pug-loader-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-2.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-loader-2.1.0.tgz_1469420851507_0.5819283530581743"},"directories":{},"publish_time":1469420851751,"_cnpm_publish_time":1469420851751,"_hasShrinkwrap":false},"2.0.0":{"name":"pug-loader","version":"2.0.0","author":{"name":"Tobias Koppers @sokra"},"description":"Pug loader module for Webpack","dependencies":{"loader-utils":"~0.2.5","resolve":"^1.1.7"},"peerDependencies":{"pug":">=2.0.0-beta3 <3"},"devDependencies":{"mocha":"*","pug":"^2.0.0-beta4","should":"*"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git://github.com/pug/pug-loader.git"},"license":"MIT","gitHead":"00a64c60e8eee7c522e197f2225b9dfc796be9c9","bugs":{"url":"https://github.com/pug/pug-loader/issues"},"homepage":"https://github.com/pug/pug-loader#readme","_id":"pug-loader@2.0.0","_shasum":"920342b84b3de1521799ae0c33913ac56e94ef02","_from":".","_npmVersion":"3.9.6","_nodeVersion":"6.2.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"920342b84b3de1521799ae0c33913ac56e94ef02","size":5156,"noattachment":false,"key":"/pug-loader/-/pug-loader-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-2.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pug-loader-2.0.0.tgz_1469417964342_0.552729057148099"},"directories":{},"publish_time":1469417967595,"_cnpm_publish_time":1469417967595,"_hasShrinkwrap":false},"1.0.2":{"name":"pug-loader","version":"1.0.2","description":"The pug loader is responsible for loading the depenendencies of a given pug file.","keywords":["pug"],"dependencies":{"pug-walk":"0.0.3"},"devDependencies":{"pug-lexer":"^1.0.0","pug-parser":"^1.0.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-loader.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"838b12aefae7f190f1a74302f56dbc1bc60e6353","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@1.0.2","_shasum":"5a8bee1b81bd6781e3c0b5a068c722c6c858f946","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"5a8bee1b81bd6781e3c0b5a068c722c6c858f946","size":4005,"noattachment":false,"key":"/pug-loader/-/pug-loader-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pug-loader-1.0.2.tgz_1460896187476_0.1502466006204486"},"directories":{},"publish_time":1460896188609,"_cnpm_publish_time":1460896188609,"deprecated":"Please use pug-load for pug-loader@<=1.0.2.","_hasShrinkwrap":false},"1.0.1":{"name":"pug-loader","version":"1.0.1","description":"The pug loader is responsible for loading the depenendencies of a given pug file.","keywords":["pug"],"dependencies":{"pug-walk":"0.0.3"},"devDependencies":{"pug-lexer":"^1.0.0","pug-parser":"^1.0.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-loader.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"1663969d87166514ecfb3a42344076bfc057f6bc","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader#readme","_id":"pug-loader@1.0.1","_shasum":"34950a746daaa9f699f78aab75f7baf2505b63be","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"34950a746daaa9f699f78aab75f7baf2505b63be","size":3999,"noattachment":false,"key":"/pug-loader/-/pug-loader-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-loader-1.0.1.tgz_1459691735534_0.9280127363745123"},"directories":{},"publish_time":1459691737823,"_cnpm_publish_time":1459691737823,"deprecated":"Please use pug-load for pug-loader@<=1.0.2.","_hasShrinkwrap":false},"1.0.0":{"name":"pug-loader","version":"1.0.0","description":"The pug loader is responsible for loading the depenendencies of a given pug file.","keywords":["pug"],"dependencies":{"pug-walk":"0.0.3"},"devDependencies":{"pug-lexer":"^1.0.0","pug-parser":"^1.0.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"https://github.com/pugjs/pug-loader.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"e0efe9b9670c65c0a7504e222b1ad9176c05ee5b","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"homepage":"https://github.com/pugjs/pug-loader","_id":"pug-loader@1.0.0","_shasum":"02d16ffba820a4d0a5d7c2b038e875d367f1c5ad","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"02d16ffba820a4d0a5d7c2b038e875d367f1c5ad","size":5003,"noattachment":false,"key":"/pug-loader/-/pug-loader-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-1.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"publish_time":1450844800335,"_cnpm_publish_time":1450844800335,"deprecated":"Please use pug-load for pug-loader@<=1.0.2.","_hasShrinkwrap":false},"0.0.0":{"name":"pug-loader","version":"0.0.0","description":"The jade loader is responsible for loading the depenendencies of a given jade file.","keywords":[],"dependencies":{"pug-walk":"0.0.0"},"devDependencies":{"pug-lexer":"0.0.0","pug-parser":"0.0.0"},"scripts":{"test":"node test"},"repository":{"type":"git","url":"https://github.com/jadejs/jade-load.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"9082f5c75724423189b7d221ff1d8e3e44e16e3f","bugs":{"url":"https://github.com/jadejs/jade-load/issues"},"homepage":"https://github.com/jadejs/jade-load","_id":"pug-loader@0.0.0","_shasum":"2994cc855db098a62ab51b97fc150bc06ab919bf","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"2994cc855db098a62ab51b97fc150bc06ab919bf","size":4301,"noattachment":false,"key":"/pug-loader/-/pug-loader-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-loader/download/pug-loader-0.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"leenty","email":"leenty@qq.com"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"publish_time":1449880969356,"_cnpm_publish_time":1449880969356,"deprecated":"Please use pug-load for pug-loader@<=1.0.2.","_hasShrinkwrap":false}},"readme":"# pug-loader\n\nPug loader for webpack.\n\n## Usage\n\n``` javascript\nvar template = require(\"pug-loader!./file.pug\");\n// => returns file.pug content as template function\n\n// or, if you've bound .pug to pug-loader\nvar template = require(\"./file.pug\");\n\nvar locals = { /* ... */ };\n\nvar html = template(locals);\n// => the rendered HTML\n```\n\nFor more information on how to use webpack loaders, check the [official documentation][using-loaders].\n\nIn order to obtain the rendered HTML at compile time, combine this loader with [`apply-loader`](https://github.com/mogelbrod/apply-loader):\n\n```\nvar html = require(\"apply-loader!pug-loader!./file.pug\");\n// => the HTML is rendered at compile time\n```\n\n### Legacy `.jade` files\n\npug-loader fully supports `.jade` files. Just use pug-loader with `.jade` files as you would with a `.pug` file.\n\n### Includes\n\nIf you are using [includes], you must make sure that `.pug` (and if needed for legacy files, `.jade`) is bound to pug-loader. Check the webpack documentation on how to do that for [CLI][module-bind-cli] and for [configuration files][module-bind-config].\n\n### Options\n\nThe following [options] are available to be set for the loader. They are all mapped directly to Pug options, unless pointed out otherwise.\n\n- `doctype`\n  - Unlike Pug, it defaults to `\"html\"` if not set\n- `globals`\n- `self`\n- `plugins`\n  - Note that you cannot specify any Pug plugins implementing `read` or `resolve` hooks, as those are reserved for the loader\n- `pretty`\n- `filters`\n- `root`\n  - webpack uses its own file resolving mechanism, so while it is functionally equivalent to the Pug option with the same name, it is implemented differently\n\n### Embedded resources\n\nTry to use `require` for all your embedded resources, to process them with webpack.\n\n```pug\ndiv\n  img(src=require(\"./my/image.png\"))\n```\n\nRemember, you need to configure loaders for these file types too. You might be interested in the [file loader][file-loader].\n\n## License\n\n[MIT][mit]\n\n[file-loader]: https://github.com/webpack/file-loader\n[includes]: https://pugjs.org/language/includes.html\n[mit]: https://www.opensource.org/licenses/mit-license.php\n[module-bind-cli]: https://webpack.js.org/concepts/loaders/#via-cli\n[module-bind-config]: https://webpack.js.org/concepts/loaders/#configuration\n[options]: https://webpack.js.org/configuration/module/#useentry\n[using-loaders]: https://webpack.js.org/loaders\n","_attachments":{},"homepage":"https://github.com/pugjs/pug-loader#readme","bugs":{"url":"https://github.com/pugjs/pug-loader/issues"},"license":"MIT"}