{"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":"yyx990803@gmail.com"}],"dist":{"shasum":"889205eca5d0e198067d426058928414da5383be","tarball":"http://registry-npm.ywwl.com/vue-html-loader/download/vue-html-loader-1.2.3.tgz","integrity":"sha512-2ivzKnwl6BFFHf9K1lYI2A2BF990PLQUXqGCvkzkupnjHae4eefQBRkhCaZuBWP/mhhEesC8KurTyKIUByaBkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGeS2+x11RDAhijt+yQRevwJwGsynsMKpdrLu8Bo7rnAiEA2h5l0CuLjXst543fhczs26iKrsQzdl0FQbMXtSYqwMw="}],"size":3418,"noattachment":false,"key":"/vue-html-loader/-/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"},"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","publish_time":1466615435179,"_cnpm_publish_time":1466615435179,"dist-tags":{"latest":"1.2.4"}}