{"id":16832659,"url":"https://github.com/zswang/fis3-parser-webpack","last_synced_at":"2025-06-19T22:06:07.910Z","repository":{"id":57237300,"uuid":"61796141","full_name":"zswang/fis3-parser-webpack","owner":"zswang","description":"A parser plugin for fis3 to compile webpack file.","archived":false,"fork":false,"pushed_at":"2018-03-15T08:10:37.000Z","size":11,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-19T22:03:14.954Z","etag":null,"topics":["fis3","webpack"],"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/zswang.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":"2016-06-23T10:20:03.000Z","updated_at":"2018-03-15T08:10:57.000Z","dependencies_parsed_at":"2022-08-26T15:10:17.156Z","dependency_job_id":null,"html_url":"https://github.com/zswang/fis3-parser-webpack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zswang/fis3-parser-webpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Ffis3-parser-webpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Ffis3-parser-webpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Ffis3-parser-webpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Ffis3-parser-webpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zswang","download_url":"https://codeload.github.com/zswang/fis3-parser-webpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zswang%2Ffis3-parser-webpack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260838503,"owners_count":23070602,"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":["fis3","webpack"],"created_at":"2024-10-13T11:49:57.465Z","updated_at":"2025-06-19T22:06:02.840Z","avatar_url":"https://github.com/zswang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fis3-parser-webpack\n-----\n\nA parser for fis to compile webpack module.\n\n# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]\n\n## 使用示例\n\n```js\nfis.match('xx.js', {\n    parser: fis.plugin('webpack', {\n        module: {\n            rules: [{\n                test: /\\.css$/,\n                use: [ 'style-loader', 'css-loader' ]\n            }]\n        },\n        // ...options\n        // 请参考 https://webpack.js.org/configuration/#options\n    })\n})\n```\n\n或者\n\n```js\nfis.match('xx.js', {\n    parser: fis.plugin('webpack', {\n        getOptions: function(webpack) {\n            return {\n                module: {\n                    rules: [{\n                        test: /\\.css$/,\n                        use: [ 'style-loader', 'css-loader' ]\n                    }]\n                },\n                plugins: [\n                    // Ignore require() calls in vs/language/typescript/lib/typescriptServices.js\n                    new webpack.IgnorePlugin(\n                        /^((fs)|(path)|(os)|(crypto)|(source-map-support))$/,\n                        /vs\\/language\\/typescript\\/lib/\n                    )\n                ]\n            }\n        }\n    })\n})\n```\n\n## License\n\nMIT © [zswang](http://weibo.com/zswang)\n\n[npm-url]: https://npmjs.org/package/fis3-parser-webpack\n[npm-image]: https://badge.fury.io/js/fis3-parser-webpack.svg\n[travis-url]: https://travis-ci.org/zswang/fis3-parser-webpack\n[travis-image]: https://travis-ci.org/zswang/fis3-parser-webpack.svg?branch=master\n[coverage-url]: https://coveralls.io/github/zswang/fis3-parser-webpack?branch=master\n[coverage-image]: https://coveralls.io/repos/zswang/fis3-parser-webpack/badge.svg?branch=master\u0026service=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Ffis3-parser-webpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzswang%2Ffis3-parser-webpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzswang%2Ffis3-parser-webpack/lists"}