{"_id":"@altipla/vue-template-compiler-loader","_rev":"1-a1f23a0bd9b48c0acb4a12c21e25a2fa","name":"@altipla/vue-template-compiler-loader","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@altipla/vue-template-compiler-loader","version":"1.0.0","description":"Webpack loader to pre-compile Vue 2.0 templates. - Allows custom compiler options.","main":"index.js","repository":{"type":"git","url":"git+https://github.com/altipla-consulting/vue-template-compiler-loader.git"},"keywords":["webpack-loader","webpack","vuejs"],"author":{"name":"Altipla Consulting"},"license":"MIT","bugs":{"url":"https://github.com/altipla-consulting/vue-template-compiler-loader/issues"},"homepage":"https://github.com/altipla-consulting/vue-template-compiler-loader#readme","peerDependencies":{"vue-template-compiler":"^2.0.0"},"dependencies":{"loader-utils":"^2.0.0"},"gitHead":"ce563f963415dde2557e35799223c78cb6327078","_id":"@altipla/vue-template-compiler-loader@1.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-sYcH/tIqy+KUzYu8z89aJ/myWfuNJ43dF22o7CrAYXfrA4CjW97cxRpC2vOKIuISlxSsxkpVmCcwm5w/P4c3Rw==","shasum":"17dcda842c6fe4380d648ab5167e34b26edb7114","tarball":"https://registry.npmjs.org/@altipla/vue-template-compiler-loader/-/vue-template-compiler-loader-1.0.0.tgz","fileCount":4,"unpackedSize":3650,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJerGBhCRA9TVsSAnZWagAAQ28P/18qATTKZFH3mbTayp81\nm0sB3FzbXRoJg6JQPpwzV7gn4dYC5NzZCRVKtZMScO325eCo3PlAPLjxA2YP\nXYA11a4hXdlcAdIKJAs3OP4zCP2DpOD65tdQu9UEuZAo9r7fsJJ8AayBe6hy\nHhzNMzyuoUKOY1x9sz13TY479DR8TV2NSDkBK1G6rHtQNO27yDoQhN+3Obbn\nP4Nuk+hhPlyA/aKHzPxRuVeGVmEn0HSSFEdbkgyQIqWvzR7q3Iol1mAT1abC\nHs31dy4+l8QOF7TxCYW9BXFkLcfTS6loPUYp7T+cMFnAPROYxnMbHwOkxNWb\nXp+WLqVAUU2vSvpJm5oVeaOnIhmARJt7EWPpVvQ3o5cP9xlyoOelzJ0MDsZX\nlXn7HYbuYhniciMksU0Iak7OalX1Z1SCqVAA4HsRco1fmu6M57zX/6wBCxww\nNv4A2F6HfQGJoAuFU7Zw4C2CDJiCjlcdzKUF60Q8DFEbt6T2SgVHGAu6fN03\nnjYWwExpTDNIsgppB98pdPdRmnXq+VLjERf4WOpbuKFO/hJDTgYlMs178UgS\nxVZ4ro/IBaMLPiqKC/mvSg6W+vH+xOqGUT6HeiZk58CaXaihwpISt+6ywUZz\n0FTmkzON2dVntvNmIX66yf8d80Xk9MJorrOVuOR4oyblfvGGXSAzSBVAbYSN\n8Nwl\r\n=g/bw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHCJtxZjhUCljWlX1cVMMFOU8l8vmuLU3lejpiaH/QxfAiBQnxQ7EuwEsr+xOL93GDd2ZRJZ3MaNzsAZBRAiDlmOtw=="}]},"maintainers":[{"name":"ernestoalejo","email":"contact@ernestoalejo.me"}],"_npmUser":{"name":"ernestoalejo","email":"contact@ernestoalejo.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-template-compiler-loader_1.0.0_1588355168498_0.7315184511748918"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-01T17:46:08.433Z","1.0.0":"2020-05-01T17:46:08.627Z","modified":"2022-04-04T13:40:17.178Z"},"maintainers":[{"name":"ernestoalejo","email":"contact@ernestoalejo.me"}],"description":"Webpack loader to pre-compile Vue 2.0 templates. - Allows custom compiler options.","homepage":"https://github.com/altipla-consulting/vue-template-compiler-loader#readme","keywords":["webpack-loader","webpack","vuejs"],"repository":{"type":"git","url":"git+https://github.com/altipla-consulting/vue-template-compiler-loader.git"},"author":{"name":"Altipla Consulting"},"bugs":{"url":"https://github.com/altipla-consulting/vue-template-compiler-loader/issues"},"license":"MIT","readme":"\n# vue-template-compiler-loader\n\nThis is a copy of the official `vue-template-compiler-loader` that allows custom compiler options.\n\nSee this repo for the original source code: https://github.com/fergaldoyle/vue-template-compiler-loader\n\n\n## Install\n\n```shell\nnpm i @altipla/vue-template-compiler-loader --save-dev\n```\n\nYou will also need the peer dependency of `vue-template-compiler` in the same version as Vue. All the compiler versions work with the latest release of this package.\n\n```shell\nnpm i vue-template-compiler --save-dev\n```\n\n\n## Configuration\n\nAdd this configuration to your `module.loaders` inside `webpack.config.js`:\n\n```js\n  {\n    test: /\\.vhtml$/,\n    loader: '@altipla/vue-template-compiler',\n    options: {\n      compilerOptions: {\n        whitespace: 'preserve',\n      },\n    },\n  },\n```\n\nYou can use any option of the compiler available in [the documentation](https://www.npmjs.com/package/vue-template-compiler).\n\n\n## Usage\n\nSplit the template and the script in two files and you can import it from the component:\n\n```js\nimport Vue from 'vue';\n\nimport template from './my-component.vhtml';\n\n\nVue.component('my-component', {\n  ...template,\n\n  mounted () {\n    // ...\n  },\n});\n```\n","readmeFilename":"README.md"}