{"id":23582477,"url":"https://github.com/fork/vue-components-loader","last_synced_at":"2025-11-02T18:30:34.428Z","repository":{"id":38426807,"uuid":"267839302","full_name":"fork/vue-components-loader","owner":"fork","description":"A webpack loader for treeshaking and auto importing Vue components.","archived":false,"fork":false,"pushed_at":"2023-03-04T21:05:29.000Z","size":122,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-27T01:11:56.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-05-29T11:18:45.000Z","updated_at":"2021-03-24T17:41:10.000Z","dependencies_parsed_at":"2024-12-27T01:11:48.891Z","dependency_job_id":"4d149177-3da0-4067-82d4-30b5662908a3","html_url":"https://github.com/fork/vue-components-loader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-components-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-components-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-components-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-components-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fork","download_url":"https://codeload.github.com/fork/vue-components-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239399809,"owners_count":19632022,"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":[],"created_at":"2024-12-27T01:11:43.458Z","updated_at":"2025-02-18T02:44:52.042Z","avatar_url":"https://github.com/fork.png","language":"JavaScript","readme":"# @4rk/vue-components-loader\n\nA webpack loader for treeshaking and auto importing Vue components.\n\n## Features\n\n- Based on and heavily inspired by [vuetify-loader](https://github.com/vuetifyjs/vuetify-loader) and [@nuxt/components](https://github.com/nuxt/components)\n- Works for _every_ Vue project using webpack, no vuetify or nuxt needed!\n- Scans and auto-imports components, no more `components: {}`!\n- May make your bundle smaller compared to global `Vue.registerComponent()`!\n\n## Usage\n\nCreate your components:\n\n```\ncomponents/\n  ComponentFoo.vue\n  ComponentBar.vue\n```\n\nUse them whenever you want, they will be auto imported in .vue files :\n\n```html\n\u003ctemplate\u003e\n  \u003cComponentFoo /\u003e\n  \u003ccomponent-bar /\u003e\n\u003c/template\u003e\n```\n\nNo need anymore to manually import them in the script section! The component name gets infered from the filename.\n\n## Setup\n\nAdd the plugin to your `webpack.config.js` and configure where your Vue components can be found:\n\n```javascript\n// webpack.config.js\n\nconst VueComponentsLoaderPlugin = require(\"vue-components-loader\");\n\nmodule.exports = {\n  ...\n\n  plugins: [\n    new VueComponentsLoaderPlugin({\n      paths: [\"./components/**/*.vue\"]\n    })\n  ],\n\n  ...\n};\n```\n\n## Options\n\n### `paths`\n\n- Type: `Array\u003cString\u003e` or `Path` object (see below)\n\nList of directories to scan, with customizable options when using Object syntax.\n\nString items are shortcut to Object with only path provided :\n\n```javascript\n\"./src/**/*.vue\" === { path: \"./src/**/*.vue\" };\n```\n\n#### `Path` object properties\n\n##### `path`\n\n- Type: `String`\n- Required\n\nPath glob to your components. Must follow the [node-glob pattern style](https://github.com/isaacs/node-glob#glob-primer).\n\n##### `ignore`\n\n- Type: `String` or `Array\u003cString\u003e`\n\nIgnore glob patterns.\n\n##### `prefix`\n\n- Type: `String`\n\nPrefix component names.\n\n## License\n\n[MIT License](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffork%2Fvue-components-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffork%2Fvue-components-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffork%2Fvue-components-loader/lists"}