{"id":20486035,"url":"https://github.com/maiscrm/html-skeleton-webpack-plugin","last_synced_at":"2025-10-04T23:07:30.883Z","repository":{"id":42870809,"uuid":"258227335","full_name":"maiscrm/html-skeleton-webpack-plugin","owner":"maiscrm","description":"This is a plugin to help webpack inject skeleton element and CSS asset into html.","archived":false,"fork":false,"pushed_at":"2023-01-07T17:25:23.000Z","size":135,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-06-09T13:50:57.652Z","etag":null,"topics":[],"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/maiscrm.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}},"created_at":"2020-04-23T14:11:37.000Z","updated_at":"2023-04-17T05:56:44.000Z","dependencies_parsed_at":"2023-02-07T18:00:14.740Z","dependency_job_id":null,"html_url":"https://github.com/maiscrm/html-skeleton-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maiscrm/html-skeleton-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiscrm%2Fhtml-skeleton-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiscrm%2Fhtml-skeleton-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiscrm%2Fhtml-skeleton-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiscrm%2Fhtml-skeleton-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maiscrm","download_url":"https://codeload.github.com/maiscrm/html-skeleton-webpack-plugin/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maiscrm%2Fhtml-skeleton-webpack-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259935545,"owners_count":22934376,"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-11-15T16:34:48.940Z","updated_at":"2025-10-04T23:07:25.862Z","avatar_url":"https://github.com/maiscrm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm][npm]][npm-url]\n\n# html-skeleton-webpack-plugin\n\nThis is a plugin to help webpack to inject skeleton element and CSS asset into html.\n\n## Usage\n\n**webpack.config.js**\n```js\nconst HtmlSkeletonWebpackPlugin = require('html-skeleton-webpack-plugin');\n\nmodule.exports = {\n  entry: 'index.js',\n  output: {\n    path: __dirname + '/dist',\n    filename: 'index_bundle.js'\n  },\n  plugins: [\n    new HtmlWebpackPlugin(),\n    new HtmlSkeletonWebpackPlugin({\n      cssFilename: 'css/[name].[contenthash].css',\n      template: path.resolve(__dirname, 'src/skeleton.vue'),\n    }),\n  ]\n}\n```\n\n**index.html**\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003ctitle\u003eWebpack App\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"app\"\u003e\n      \u003c!-- inject-skeleton --\u003e\n    \u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nThis will inject skeleton element into *\\\u003c!-- inject-skeleton --\u003e* and insert CSS assets into html head\n\n## Options\n\n|Name|Type|Default|Description|\n|:--:|:--:|:-----:|:----------|\n|**`cssFilename`**|`{String}`|`'sekeleton.[contenthash].css'`|The file to write the CSS asset to. Defaults to `sekeleton.[contenthash].css`.|\n|**`template`**|`{String}`||Relative or absolute path to the skeleton template. By default it will use the default loading template.|\n\n## Preview\n\n![preview](./docs/preview.gif)\n\n\n[npm]: https://img.shields.io/npm/v/@maiscrm/html-skeleton-webpack-plugin.svg\n[npm-url]: https://www.npmjs.com/package/@maiscrm/html-skeleton-webpack-plugin","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaiscrm%2Fhtml-skeleton-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaiscrm%2Fhtml-skeleton-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaiscrm%2Fhtml-skeleton-webpack-plugin/lists"}