{"_id":"pug-plain-loader","_rev":"4-4fda867d250aff59f7e4aa9b5da72610","name":"pug-plain-loader","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"pug-plain-loader","version":"1.0.0","description":"Pug to plain html loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/yyx990803/pug-plain-loader.git"},"bugs":{"url":"https://github.com/yyx990803/pug-plain-loader/issues"},"homepage":"https://github.com/yyx990803/pug-plain-loader","keywords":["pug","loader","webpack","plain"],"author":{"name":"Evan You","email":"yyx990803@gmail.com"},"license":"MIT","peerDependencies":{"pug":"^2.0.0"},"dependencies":{"loader-utils":"^1.1.0"},"devDependencies":{"pug":"^2.0.3"},"gitHead":"d2bc7c4ee84096fe94dd0c8778f3f6d860c2d6c3","_id":"pug-plain-loader@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"dist":{"integrity":"sha512-mDfq/qvJJ0xdug38mZ1ObW0BQTx9kAHnKqotXC+C00XQkKmsWaMe90JUg/kN4lS6MU7tpVsMZ+rmcnBSPfDtHA==","shasum":"cef2a984c90251882109ec2d417a6b433aa6b42a","tarball":"https://registry.npmjs.org/pug-plain-loader/-/pug-plain-loader-1.0.0.tgz","fileCount":5,"unpackedSize":16794,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9BiLMQdGz7u4Hi8GX90j8ebUU72Rz/tGhalSMeoSHPwIhAK7oEn+EwKSGfOf2snvz3A5gJITCDU5jOlEr3BfwdzW6"}]},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-plain-loader_1.0.0_1521947551178_0.5718195483754382"},"_hasShrinkwrap":false},"1.1.0":{"name":"pug-plain-loader","version":"1.1.0","description":"Pug to plain html loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/yyx990803/pug-plain-loader.git"},"bugs":{"url":"https://github.com/yyx990803/pug-plain-loader/issues"},"homepage":"https://github.com/yyx990803/pug-plain-loader","keywords":["pug","loader","webpack","plain"],"author":{"name":"Evan You","email":"yyx990803@gmail.com"},"license":"MIT","peerDependencies":{"pug":"^2.0.0 || ^3.0.0"},"dependencies":{"loader-utils":"^1.1.0"},"devDependencies":{"pug":"^2.0.3"},"gitHead":"0b131342194aea8e4a3503f6ba587d151b0ef753","_id":"pug-plain-loader@1.1.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1nYgIJLaahRuHJHhzSPODV44aZfb00bO7kiJiMkke6Hj4SVZftuvx6shZ4BOokk50dJc2RSFqNUBOlus0dniFQ==","shasum":"59f3b475284871afcd6a18d2ad3318b150fdc533","tarball":"https://registry.npmjs.org/pug-plain-loader/-/pug-plain-loader-1.1.0.tgz","fileCount":4,"unpackedSize":4071,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0CgYCRA9TVsSAnZWagAAzq8P+gKWXibfneVNZdpx26E1\nTBdbtEJZYo6I+N1IgknMgirPlFr0890wvvAuFKptexiq2XcdwqwfBelGROlm\nufIOSgVqXtrDQySuQ0MqI+YCsxQ4J4WLov6gljo8CbWGtP/g54kGaUHppavP\nKJgADYrEw24YheZAKPKAdHayfu9rvPQL9O5YNWkhgUycAu/9v5DUzPmRjUqD\n3dfhHQeq4IQULrPWUlqOAI4hH1PGyjoNtPeZDHpP2962LVZRugq/pYPixqia\nKf3SbIaHEHv7rYQ7qR17EGISvL5SV4gdixwcnQ3DNfMkGZXmQ1lvG1wTTaCC\n/aLrLoSda6S9F180UubDVYA0WOkMvlmBhemZWwOFSqyRNaTkdTJfdsnurQ6u\n+ncRFw+JcrUzlGQjTbCfZ/nU6vwIGxnmCgZN+37zR333Kg03gFkOCHTWJYZ+\n+CdC0XLafLMOWEPWN4CvrRf3/r+mgDDlSqFfnIZZkqJ9HnhQRtgOggpvOP+4\nZN3hh3w8gSBVre/EJceDq2sIQslTpa/zmUnrT2RppZmsdvjbchNGGzZ+gJTH\nOnJZtLrhVchGtdYPW67BQuCauarRT1nTuXhA4zr2NqXTU6U/HLHU4iy8DnWx\nNaHPJHLHnwkomW+UukkMJa5wzG3wv/4lkBr7WXEHdZ13b7sszuoKWq1giS7g\nk1ny\r\n=fRxZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMM5wAOP2qtKlOOwhQ6ptlMuKVFxSky+NkQk6yOqnMNAiATnjU8jr7xhxAMm+LAUUU4OlmHlApKueY6KFbjbcN9Mw=="}]},"_npmUser":{"name":"soda","email":"haoqunjiang+npm@gmail.com"},"directories":{},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"soda","email":"haoqunjiang+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-plain-loader_1.1.0_1607477272195_0.7473254149741617"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-25T03:12:31.178Z","1.0.0":"2018-03-25T03:12:31.267Z","modified":"2022-05-13T16:12:16.506Z","1.1.0":"2020-12-09T01:27:52.356Z"},"maintainers":[{"name":"yyx990803","email":"yyx990803@gmail.com"},{"name":"soda","email":"haoqunjiang+npm@gmail.com"}],"description":"Pug to plain html loader for webpack","homepage":"https://github.com/yyx990803/pug-plain-loader","keywords":["pug","loader","webpack","plain"],"repository":{"type":"git","url":"git+https://github.com/yyx990803/pug-plain-loader.git"},"author":{"name":"Evan You","email":"yyx990803@gmail.com"},"bugs":{"url":"https://github.com/yyx990803/pug-plain-loader/issues"},"license":"MIT","readme":"# pug-plain-loader\n\nA loader that simply compiles pug templates into HTML.\n\n## Installation\n\nNote `pug` is a peer dependency, so make sure to install both:\n\n``` sh\nnpm install -D pug-plain-loader pug\n```\n\n## Usage\n\nThis loader is mostly intended to be used alongside `vue-loader` v15+, since it now requires using webpack loaders to handle template preprocessors. There's also [`pug-html-loader`](https://github.com/willyelm/pug-html-loader) which unfortunately is out-of-date and not actively maintained.\n\nIf you are only using this loader for templating in single-file Vue components, simply configure it with:\n\n``` js\n{\n  module: {\n    rules: [\n      {\n        test: /\\.pug$/,\n        loader: 'pug-plain-loader'\n      }\n    ]\n  }\n}\n```\n\nThis will apply this loader to all `<template lang=\"pug\">` blocks in your Vue components.\n\nIf you also intend to use it to import `.pug` files as HTML strings in JavaScript, you will need to chain `raw-loader` after this loader. Note however adding `raw-loader` would break the output for Vue components, so you need to have two rules, one of them excluding Vue components:\n\n``` js\n{\n  module: {\n    rules: [\n      {\n        test: /\\.pug$/,\n        oneOf: [\n          // this applies to pug imports inside JavaScript\n          {\n            exclude: /\\.vue$/,\n            use: ['raw-loader', 'pug-plain-loader']\n          },\n          // this applies to <template lang=\"pug\"> in Vue components\n          {\n            use: ['pug-plain-loader']\n          }\n        ]\n      }\n    ]\n  }\n}\n```\n\n## Options\n\nSee [Pug compiler options](https://pugjs.org/api/reference.html#options).\n\nThe `doctype` option is set to `html` by default, since most Vue templates are HTML fragments without explicit doctype.\n\nAn additional option `data` can be used to pass locals for the template, although this is typically not recommended when using in Vue components.\n","readmeFilename":"README.md"}