{"id":16434390,"url":"https://github.com/fergaldoyle/vue-template-compiler-loader","last_synced_at":"2025-03-21T04:32:44.224Z","repository":{"id":72022050,"uuid":"66168484","full_name":"fergaldoyle/vue-template-compiler-loader","owner":"fergaldoyle","description":"Webpack loader to pre-compile Vue 2.0 templates","archived":false,"fork":false,"pushed_at":"2016-11-24T10:54:03.000Z","size":5,"stargazers_count":26,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-12T08:49:00.905Z","etag":null,"topics":["html-templates","vuejs2","webpack","webpack-loader"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fergaldoyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-20T21:19:26.000Z","updated_at":"2023-11-03T17:12:29.000Z","dependencies_parsed_at":"2023-05-14T11:15:47.497Z","dependency_job_id":null,"html_url":"https://github.com/fergaldoyle/vue-template-compiler-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergaldoyle%2Fvue-template-compiler-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergaldoyle%2Fvue-template-compiler-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergaldoyle%2Fvue-template-compiler-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fergaldoyle%2Fvue-template-compiler-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fergaldoyle","download_url":"https://codeload.github.com/fergaldoyle/vue-template-compiler-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811461,"owners_count":16884335,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html-templates","vuejs2","webpack","webpack-loader"],"created_at":"2024-10-11T08:49:01.516Z","updated_at":"2024-10-28T09:24:54.126Z","avatar_url":"https://github.com/fergaldoyle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-template-compiler-loader\n\nWebpack loader to pre-compile Vue 2.0 templates.\n\n`npm i vue-template-compiler-loader --save-dev`\n\n### Webpack config\nTo `module.loaders` add:\n\n`{ test: /\\.html$/, loader: 'vue-template-compiler' }`\n\n\n### Usage\n\n`import template from './template.html'`\n\n`template` will be an object\n\n```javascript\n{\n  render: Function,\n  staticRenderFns: Array\u003cFunction\u003e\n}\n```\n\nSet `render` and `staticRenderFns` properties on a component e.g:\n\n```javascript\n// manually\nimport template from './template.html'\n\nexport const myComponent = {\n  name: 'myComponent',\n  render: template.render,\n  staticRenderFns: template.staticRenderFns,\n  mounted () {}\n}\n\n\n\n// mixin\nimport template from './template.html'\n\nexport const myComponent = {\n  name: 'myComponent',\n  mixins: [template],\n  mounted () {}\n}\n\n\n\n// stage2 object spread\nimport template from './template.html'\n\nexport const myComponent = {\n  name: 'myComponent',\n  ...template,\n  mounted () {}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffergaldoyle%2Fvue-template-compiler-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffergaldoyle%2Fvue-template-compiler-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffergaldoyle%2Fvue-template-compiler-loader/lists"}