{"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":"yyx990803@gmail.com"}],"dist":{"shasum":"c45c7c2c61a241d865df25171f73dfe4d4d773c1","tarball":"http://registry-npm.ywwl.com/vue-html-loader/download/vue-html-loader-1.0.0.tgz","integrity":"sha512-2/6B1/I3Ci06wxViJ4TdBNZ/z6X7EnMBSfi4CXBvkhx5fWyQOsTRKcrPyn7yislR6voAJ6DssT9BrJkXTes5SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTbLyhEQdaGH2MBGx2TzKCV//YQIVappAZ/M5gcGJEqgIhALYyTh9M95PBNjkvFAQwkqyCJQ5P4M6NZX5Z8cAwp+Ut"}],"size":2922,"noattachment":false,"key":"/vue-html-loader/-/vue-html-loader-1.0.0.tgz"},"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":1443725804986,"_cnpm_publish_time":1443725804986,"dist-tags":{"latest":"1.2.4"}}