{"_id":"vue-html-loader","_rev":"1212223","name":"vue-html-loader","description":"vue template loader for webpack","dist-tags":{"latest":"1.2.4"},"maintainers":[{"name":"yyx990803","email":""}],"time":{"modified":"2021-10-13T05:45:50.000Z","created":"2015-10-01T18:56:44.986Z","1.2.4":"2017-02-24T03:30:12.794Z","1.2.3":"2016-06-22T17:10:35.179Z","1.2.2":"2016-04-06T17:19:22.102Z","1.2.1":"2016-04-01T20:43:20.005Z","1.2.0":"2016-02-17T03:55:09.292Z","1.1.0":"2015-12-31T15:05:00.019Z","1.0.0":"2015-10-01T18:56:44.986Z"},"users":{"usex":true,"yeming":true,"gurunate":true,"yanlaichang":true},"author":{"name":"Evan You"},"repository":{"type":"git","url":"git+ssh://git@github.com/vuejs/vue-html-loader.git"},"versions":{"1.2.4":{"name":"vue-html-loader","version":"1.2.4","author":{"name":"Evan You"},"description":"vue template loader for webpack","dependencies":{"es6-templates":"^0.2.2","fastparse":"^1.0.0","html-minifier":"^2.1.5","loader-utils":"^1.0.2","object-assign":"^4.1.0"},"devDependencies":{"mocha":"^2.3.4","should":"^9.0.2"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/vuejs/vue-html-loader.git"},"license":"MIT","gitHead":"1f834083738e9dadd9928bf8699222a878a481f7","bugs":{"url":"https://github.com/vuejs/vue-html-loader/issues"},"homepage":"https://github.com/vuejs/vue-html-loader#readme","_id":"vue-html-loader@1.2.4","_shasum":"54ce489be06065c91dc2a1173122f3e004e0a253","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"dist":{"shasum":"54ce489be06065c91dc2a1173122f3e004e0a253","size":3396,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.2.4.tgz"},"maintainers":[{"name":"yyx990803","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/vue-html-loader-1.2.4.tgz_1487907012117_0.23479196801781654"},"directories":{},"publish_time":1487907012794,"_cnpm_publish_time":1487907012794,"_hasShrinkwrap":false},"1.2.3":{"name":"vue-html-loader","version":"1.2.3","author":{"name":"Evan You"},"description":"vue template loader for webpack","dependencies":{"es6-templates":"^0.2.2","fastparse":"^1.0.0","html-minifier":"^2.1.5","loader-utils":"^0.2.15","object-assign":"^4.1.0"},"devDependencies":{"mocha":"^2.3.4","should":"^9.0.2"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/vuejs/vue-html-loader.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"20040d667f15ec6a35a52e5a43417d4b9d137cc2","bugs":{"url":"https://github.com/vuejs/vue-html-loader/issues"},"homepage":"https://github.com/vuejs/vue-html-loader#readme","_id":"vue-html-loader@1.2.3","_shasum":"889205eca5d0e198067d426058928414da5383be","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":""}],"dist":{"shasum":"889205eca5d0e198067d426058928414da5383be","size":3418,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.2.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-html-loader-1.2.3.tgz_1466615433005_0.3434833805076778"},"directories":{},"publish_time":1466615435179,"_cnpm_publish_time":1466615435179,"_hasShrinkwrap":false},"1.2.2":{"name":"vue-html-loader","version":"1.2.2","author":{"name":"Evan You"},"description":"vue template loader for webpack","dependencies":{"es6-templates":"^0.2.2","fastparse":"^1.0.0","html-minifier":"^1.4.0","loader-utils":"~0.2.2","object-assign":"^4.0.1"},"devDependencies":{"mocha":"^2.3.4","should":"^7.1.1"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/vuejs/vue-html-loader.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"b8083c29f30eb3b205fb792b1bbb68d73e67fb6a","bugs":{"url":"https://github.com/vuejs/vue-html-loader/issues"},"homepage":"https://github.com/vuejs/vue-html-loader#readme","_id":"vue-html-loader@1.2.2","_shasum":"8a493b5c50c9438345b6418b9fe7b94a5ad1b44e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":""}],"dist":{"shasum":"8a493b5c50c9438345b6418b9fe7b94a5ad1b44e","size":3408,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-html-loader-1.2.2.tgz_1459963159815_0.11215475434437394"},"directories":{},"publish_time":1459963162102,"_cnpm_publish_time":1459963162102,"_hasShrinkwrap":false},"1.2.1":{"name":"vue-html-loader","version":"1.2.1","author":{"name":"Evan You"},"description":"vue template loader for webpack","dependencies":{"es6-templates":"^0.2.2","fastparse":"^1.0.0","html-minifier":"^1.0.0","loader-utils":"~0.2.2","object-assign":"^4.0.1"},"devDependencies":{"mocha":"^2.3.4","should":"^7.1.1"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/vuejs/vue-html-loader.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"61fb4ff0dd849da0f8e60699c079d35a94073314","bugs":{"url":"https://github.com/vuejs/vue-html-loader/issues"},"homepage":"https://github.com/vuejs/vue-html-loader#readme","_id":"vue-html-loader@1.2.1","_shasum":"d1f955e9b8a9c9821b5b3eebdcc41bd1e1bbfd99","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":""}],"dist":{"shasum":"d1f955e9b8a9c9821b5b3eebdcc41bd1e1bbfd99","size":3457,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-html-loader-1.2.1.tgz_1459543397512_0.014556427719071507"},"directories":{},"publish_time":1459543400005,"_cnpm_publish_time":1459543400005,"_hasShrinkwrap":false},"1.2.0":{"name":"vue-html-loader","version":"1.2.0","author":{"name":"Evan You"},"description":"vue template loader for webpack","dependencies":{"es6-templates":"^0.2.2","fastparse":"^1.0.0","html-minifier":"^1.0.0","loader-utils":"~0.2.2","object-assign":"^4.0.1"},"devDependencies":{"mocha":"^2.3.4","should":"^7.1.1"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/vuejs/vue-html-loader.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"cce5ef6e32e7fedf153ce6e832d770bd145e42cd","bugs":{"url":"https://github.com/vuejs/vue-html-loader/issues"},"homepage":"https://github.com/vuejs/vue-html-loader#readme","_id":"vue-html-loader@1.2.0","_shasum":"366805f794802b41d0b523ab280ba064b5c32c24","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.5.0","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":""}],"dist":{"shasum":"366805f794802b41d0b523ab280ba064b5c32c24","size":3457,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/vue-html-loader-1.2.0.tgz_1455681305179_0.9104708477389067"},"directories":{},"publish_time":1455681309292,"_cnpm_publish_time":1455681309292,"_hasShrinkwrap":false},"1.1.0":{"name":"vue-html-loader","version":"1.1.0","author":{"name":"Tobias Koppers @sokra"},"description":"html loader module for webpack","dependencies":{"html-minifier":"^1.0.0","source-map":"^0.5.3","fastparse":"^1.1.1","loader-utils":"^0.2.11"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/webpack/html-loader.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"db00df193b0787db16d45ae6dd81c1ca7a559533","bugs":{"url":"https://github.com/webpack/html-loader/issues"},"homepage":"https://github.com/webpack/html-loader#readme","_id":"vue-html-loader@1.1.0","_shasum":"f40ba6bf5e62dc6d3a3e01253f0bdc23c96a851e","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":""}],"dist":{"shasum":"f40ba6bf5e62dc6d3a3e01253f0bdc23c96a851e","size":3012,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.1.0.tgz"},"directories":{},"publish_time":1451574300019,"_cnpm_publish_time":1451574300019,"_hasShrinkwrap":false},"1.0.0":{"name":"vue-html-loader","version":"1.0.0","author":{"name":"Tobias Koppers @sokra"},"description":"html loader module for webpack","dependencies":{"html-minifier":"^0.8.0","source-map":"^0.5.1","fastparse":"^1.1.1","loader-utils":"^0.2.11"},"devDependencies":{"mocha":"1.17.x","should":"3.1.x"},"scripts":{"test":"mocha --reporter spec"},"repository":{"type":"git","url":"git+ssh://git@github.com/webpack/html-loader.git"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/mit-license.php"}],"gitHead":"253b71db9232a540dca8a27e77b3ddd457a9494a","bugs":{"url":"https://github.com/webpack/html-loader/issues"},"homepage":"https://github.com/webpack/html-loader#readme","_id":"vue-html-loader@1.0.0","_shasum":"c45c7c2c61a241d865df25171f73dfe4d4d773c1","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"maintainers":[{"name":"yyx990803","email":""}],"dist":{"shasum":"c45c7c2c61a241d865df25171f73dfe4d4d773c1","size":2922,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/vue-html-loader/download/vue-html-loader-1.0.0.tgz"},"directories":{},"publish_time":1443725804986,"_cnpm_publish_time":1443725804986,"_hasShrinkwrap":false}},"readme":"# vue-html-loader\n\n> This is a fork of [html-loader](https://github.com/webpack/html-loader) with some modifications for handling Vue templates.\n\n## Config\n\nYou can config the loader's behavior by adding an `html` field under `vue` in your webpack config:\n\n``` js\n// webpack.config.js\nmodule.exports = {\n  // ...\n  vue: {\n    html: {\n      // all loader queries can be specified here\n      // also, you can specify options for htmlMinifier here.\n    }\n  }\n}\n```\n\n## Original README below\n\nExports HTML as string. HTML is minimized when the compiler demands.\n\nBy default every local `<img src=\"image.png\">` is required (`require(\"./image.png\")`). You may need to specify loaders for images in your configuration (recommended `file-loader` or `url-loader`).\n\nYou can specify which tag-attribute combination should be processed by this loader via the query parameter `attrs`. Pass an array or a space-separated list of `<tag>:<attribute>` combinations. (Default: `attrs=img:src`)\n\nTo completely disable tag-attribute processing (for instance, if you're handling image loading on the client side) you can pass in `attrs=false`.\n\n## Usage\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n## Examples\n\nWith this configuration:\n\n``` javascript\n{\n\tmodule: { loaders: [\n\t\t{ test: /\\.jpg$/, loader: \"file-loader\" },\n\t\t{ test: /\\.png$/, loader: \"url-loader?mimetype=image/png\" }\n\t]},\n\toutput: {\n\t\tpublicPath: \"http://cdn.example.com/[hash]/\"\n\t}\n}\n```\n\n``` html\n<!-- fileA.html -->\n<img  src=\"image.jpg\"  data-src=\"image2x.png\" >\n```\n\n``` javascript\nrequire(\"html!./fileA.html\");\n// => '<img  src=\"http://cdn.example.com/49e...ba9f/a9f...92ca.jpg\"  data-src=\"image2x.png\" >'\n\nrequire(\"html?attrs=img:data-src!./file.html\");\n// => '<img  src=\"image.png\"  data-src=\"data:image/png;base64,...\" >'\n\nrequire(\"html?attrs=img:src img:data-src!./file.html\");\nrequire(\"html?attrs[]=img:src&attrs[]=img:data-src!./file.html\");\n// => '<img  src=\"http://cdn.example.com/49e...ba9f/a9f...92ca.jpg\"  data-src=\"data:image/png;base64,...\" >'\n\nrequire(\"html?-attrs!./file.html\");\n// => '<img  src=\"image.jpg\"  data-src=\"image2x.png\" >'\n\n/// minimized by running `webpack --optimize-minimize`\n// => '<img src=http://cdn.example.com/49e...ba9f/a9f...92ca.jpg data-src=data:image/png;base64,...>'\n\n```\n\n## 'Root-relative' urls\n\nFor urls that start with a `/`, the default behavior is to not translate them.\nIf a `root` query parameter is set, however, it will be prepended to the url\nand then translated.\n\nWith the same configuration above:\n``` html\n<!-- fileB.html -->\n<img src=\"/image.jpg\">\n```\n\n``` javascript\n\nrequire(\"html!./fileB.html\");\n// => '<img  src=\"/image.jpg\">'\n\nrequire(\"html?root=.!./fileB.html\");\n// => '<img  src=\"http://cdn.example.com/49e...ba9f/a9f...92ca.jpg\">'\n\n```\n\n## Interpolation\n\nYou can use `interpolate` flag to enable interpolation syntax for ES6 template strings, like so:\n\n```\nrequire(\"html?interpolate!./file.html\");\n```\n\n```\n<img src=\"${require(`./images/gallery.png`)}\" />\n<div>${require('./partials/gallery.html')}</div>\n```\n\n## License\n\nMIT (http://www.opensource.org/licenses/mit-license.php)\n","_attachments":{},"homepage":"https://github.com/vuejs/vue-html-loader#readme","bugs":{"url":"https://github.com/vuejs/vue-html-loader/issues"},"license":"MIT"}