{"id":16591147,"url":"https://github.com/flgmwt/webpack-iconfont-plugin","last_synced_at":"2025-04-14T23:13:37.504Z","repository":{"id":56571291,"uuid":"108316258","full_name":"FLGMwt/webpack-iconfont-plugin","owner":"FLGMwt","description":"SVG to icon font conversion plugin for webpack.","archived":false,"fork":false,"pushed_at":"2020-11-03T03:04:57.000Z","size":105,"stargazers_count":1,"open_issues_count":0,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T23:13:27.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/FLGMwt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-25T19:28:53.000Z","updated_at":"2021-04-20T15:18:31.000Z","dependencies_parsed_at":"2022-08-15T21:10:30.716Z","dependency_job_id":null,"html_url":"https://github.com/FLGMwt/webpack-iconfont-plugin","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/FLGMwt%2Fwebpack-iconfont-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FLGMwt%2Fwebpack-iconfont-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FLGMwt%2Fwebpack-iconfont-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FLGMwt%2Fwebpack-iconfont-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FLGMwt","download_url":"https://codeload.github.com/FLGMwt/webpack-iconfont-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975327,"owners_count":21192210,"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-10-11T23:15:30.941Z","updated_at":"2025-04-14T23:13:37.486Z","avatar_url":"https://github.com/FLGMwt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webpack-iconfont-plugin\n\nSVG to iconfont conversion plugin for webpack.\n\n## Features:\n\n* Supported font formats: WOFF2, WOFF, EOT, TTF and SVG.\n* Semantic: uses Unicode private use area.\n* Cross-browser: IE8+.\n* Generates SCSS file, custom templates possible.\n\n## Usage:\n\n`SCSS Styles:`\n\n```scss\n@import 'iconfont.scss';\n\na.arrow {\n  \u0026::before {\n    @extend %iconfont;\n    content: $iconfont-arrow;\n  }\n}\n```\n\n`Webpack config:`\n\n```js\nimport IconfontPlugin from 'webpack-iconfont-plugin';\nimport path from 'path';\n\nexport default {\n    module: {\n        loaders: [\n            ...\n        ]\n    },\n    plugins: [\n        new IconfontPlugin({\n            svgs: path.resolve(__dirname, '../assets/svg-icons/**/*.svg'),\n            fonts: path.resolve(__dirname, '../assets/fonts'),\n            styles: path.resolve(__dirname, '../styles/_iconfont.scss')\n        })\n    ],\n    ...\n};\n```\n\n## Options\n\n#### `svgs` (required) \nType: `String`\n\nFile path(s) or glob(s) to svg icons.\n\n\n#### `fonts` (required) \nType: `String`\n\nDestination for generated font files (directory).\n\n\n#### `styles` (required) \nType: `String`\n\nDestination for generated scss file (file path).\n\n\n#### `cssFontPath`\nType: `String` Default value: `/static/fonts/`\n\nPath that the generated fonts should be referenced with in the CSS styles.\n\n\n#### `template`\nType: `String` Default value: `scss`\n\nType of built in style templates ('scss', 'scss-mixins') or path to custom template.\n\n\n#### `fontName`\nType: `String` Default value: `iconfont`\n\nThis dtermines both the font family name (e.g. `font-family: 'iconfont'`, as well as the prefix for scss variables, mixins and classnames (e.g. `.iconfont-arrow`).\n\n\n#### `fontHeight`\nType: `Number` Default value: `MAX(icons.height)`\n\nThe outputted font height (defaults to the height of the highest input icon).\n\n\n#### `normalize`\nType: `Boolean` Default value: `false`\n\nNormalize icons by scaling them all to the height of the highest icon.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflgmwt%2Fwebpack-iconfont-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflgmwt%2Fwebpack-iconfont-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflgmwt%2Fwebpack-iconfont-plugin/lists"}