{"id":18636401,"url":"https://github.com/indiegogo/vue-sfc-analyzer-webpack-plugin","last_synced_at":"2025-10-16T14:12:06.674Z","repository":{"id":72496761,"uuid":"124605814","full_name":"indiegogo/vue-sfc-analyzer-webpack-plugin","owner":"indiegogo","description":"WebPack plugin that analyze .vue files which are loaded by vue-loader","archived":false,"fork":false,"pushed_at":"2020-07-17T11:35:04.000Z","size":414,"stargazers_count":7,"open_issues_count":7,"forks_count":1,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-06-13T11:56:03.095Z","etag":null,"topics":["vue","webpack","webpack-plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/indiegogo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-03-09T23:57:56.000Z","updated_at":"2019-07-15T18:02:17.000Z","dependencies_parsed_at":"2023-03-11T13:28:37.616Z","dependency_job_id":null,"html_url":"https://github.com/indiegogo/vue-sfc-analyzer-webpack-plugin","commit_stats":null,"previous_names":["indiegogo/webpack-vue-sfc-analyzer-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/indiegogo/vue-sfc-analyzer-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiegogo%2Fvue-sfc-analyzer-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiegogo%2Fvue-sfc-analyzer-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiegogo%2Fvue-sfc-analyzer-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiegogo%2Fvue-sfc-analyzer-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indiegogo","download_url":"https://codeload.github.com/indiegogo/vue-sfc-analyzer-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indiegogo%2Fvue-sfc-analyzer-webpack-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260527174,"owners_count":23022707,"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":["vue","webpack","webpack-plugin"],"created_at":"2024-11-07T05:29:29.377Z","updated_at":"2025-10-16T14:12:06.556Z","avatar_url":"https://github.com/indiegogo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueSFCAnalyzerWebpackPlugin\n\n\n[![CircleCI](https://img.shields.io/circleci/project/github/indiegogo/vue-sfc-analyzer-webpack-plugin.svg?style=flat-square)](https://circleci.com/gh/indiegogo/vue-sfc-analyzer-webpack-plugin/tree/master)\n[![npm](https://img.shields.io/npm/v/vue-sfc-analyzer-webpack-plugin.svg?style=flat-square)](https://www.npmjs.com/package/vue-sfc-analyzer-webpack-plugin)\n\nWebPack plugin that analyze Vue SFC `.vue` files which are loaded by vue-loader\n\n![image](https://user-images.githubusercontent.com/21182617/37792105-1c322958-2dc8-11e8-96f5-7fd5b602448c.png)\n\n## Requirements\n\n- Webpack 4\n- vue-loader 15+\n\n## Installation\n\n```\n$ npm install -D vue-sfc-analyzer-webpack-plugin\n```\n\nor with Yarn,\n\n```\n$ yarn add -D vue-sfc-analyzer-webpack-plugin\n```\n\nThen configure your webpack config like:\n\n```js\nconst path = require(\"path\");\nconst VueSFCAnalyzerWebpackPlugin = require(\"vue-sfc-analyzer-webpack-plugin\");\n\n...\n\nconfig.plugins.push(new VueSFCAnalyzerWebpackPlugin({\n  showSummary: true,\n  statsFilename: path.resolve(__dirname, \"../analysis/vue_sfc_stats.json\")\n}));\n\n...\n\n```\n\nWhen you run a production build (production mode on Webpack 4), `ModuleConcatenationPlugin` may not calculate sizes for `\u003cscript\u003e` and `\u003ctemplate\u003e`.\nThen you can disable the plugin with:\n\n```js\nmodule.exports = {\n  ...\n  optimization: {\n    concatenateModules: false\n  }\n  ...\n}\n```\n\n## Option\n\n```ts\nnew VueSFCAnalyzerWebpackPlugin(options: VueSFCAnalyzerWebpackPluginOption)\n```\n\n|Name|Type|Default|Description|\n|:--|:--:|:--:|:----------|\n|**`showSummary`**|`boolean`|`true`|Show summary after finishing Webpack build|\n|**`statsFileName`**|`string`|`path.resolve(process.cwd(), \"./vue_sfc_stats.json\")`|Absolute path to dump a stats file|\n\n## LICENSE\n\n[MIT](LICENSE)\n\n## Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiegogo%2Fvue-sfc-analyzer-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findiegogo%2Fvue-sfc-analyzer-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findiegogo%2Fvue-sfc-analyzer-webpack-plugin/lists"}