{"id":19936237,"url":"https://github.com/igitscor/webpack-filesystem-plugin","last_synced_at":"2026-05-10T21:39:14.749Z","repository":{"id":79706896,"uuid":"80105649","full_name":"iGitScor/webpack-filesystem-plugin","owner":"iGitScor","description":"Filesystem wrapper","archived":false,"fork":false,"pushed_at":"2017-06-12T06:50:41.000Z","size":17,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T07:49:19.087Z","etag":null,"topics":["firstpr-friendly","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/iGitScor.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-26T10:33:47.000Z","updated_at":"2018-11-05T14:10:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"efddf896-d711-46e4-9246-0bf81e711b81","html_url":"https://github.com/iGitScor/webpack-filesystem-plugin","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"69404e8f1e5d6e935dc64450eab2f029a17f4161"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iGitScor%2Fwebpack-filesystem-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iGitScor%2Fwebpack-filesystem-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iGitScor%2Fwebpack-filesystem-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iGitScor%2Fwebpack-filesystem-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iGitScor","download_url":"https://codeload.github.com/iGitScor/webpack-filesystem-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241362516,"owners_count":19950574,"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":["firstpr-friendly","webpack"],"created_at":"2024-11-12T23:24:25.251Z","updated_at":"2026-05-10T21:39:14.665Z","avatar_url":"https://github.com/iGitScor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Webpack filesystem plugin\n\nFilesystem wrapper\n\n[![Build Status][build-badge]][build]\n[![codecov][codecoverage-badge]][codecoverage]\n[![Dependencies][dependencyci-badge]][dependencyci]\n[![dependencies Status][dependencies-badge]][dependencies]\n[![devDependencies Status][devDependencies-badge]][devDependencies]\n[![MIT License][license-badge]][LICENSE]\n\n## Install Instructions\n\n```bash\n$ npm i webpack-filesystem-plugin\n```\nNote: This plugin needs NodeJS \u003e= 6\n\n## Usage Instructions\n\n**Require `webpack-filesystem-plugin`**\n```javascript\nvar WebpackFilesystem = require('webpack-filesystem-plugin')\n```\n\nAdd the plugin to your plugin list\n```javascript\nvar config = {\n  plugins: [\n    new WebpackFilesystem({\n      action: 'cp',\n      source: 'test.txt',\n      dist: 'awesome.txt',\n    })\n  ]\n}\n```\n\n### Options\n\n#### Actions\n\n- [cp](docs/cp.md): Copy files or directories\n- [rm](docs/rm.md): Remove files or directories\n\n#### Common options\n\n- `silent` _(bool)_: Display/hide info logs\n- `buildTrigger` _(string)_: Webpack build step (c.f [plugin documentation](https://webpack.github.io/docs/plugins.html)). See below accepted steps:\n  - `after-emit`\n  - `done`\n  - `failed`\n\nUse silent mode\n```javascript\nvar config = {\n  plugins: [\n    new WebpackFilesystem({\n      silent: true,\n      action: 'cp',\n      source: 'test.txt',\n      dist: 'awesome.txt',\n    })\n  ]\n}\n```\n\n##### logLevel\n- Type: `String`\n- Default: `strict`\n- Allowed value: `strict`, `log`, `none`\n  - `strict`: catch errors in an exception, **the webpack build crashes**\n  - `log`: log errors in a log file (`warning.log`) and none behavior\n  - `none`: show errors in console (when silent mode is off)\n\nSpecify behavior when the plugin fail.\n\nExample:\n```javascript\nvar config = {\n  plugins: [\n    new WebpackFilesystem({\n      silent: true,\n      action: 'cp',\n      source: 'test.txt',\n      dist: 'awesome.txt',\n      logLevel: 'log'\n      ...\n    })\n  ]\n}\n```\n\n### Contributing\n\nAll contributions are welcome. Please make a pull request and make sure things still pass after running `npm test`\n\n[build-badge]: https://img.shields.io/travis/iGitScor/webpack-filesystem-plugin.svg?style=flat-square\n[build]: https://travis-ci.org/iGitScor/webpack-filesystem-plugin\n[codecoverage-badge]: https://codecov.io/gh/iGitScor/webpack-filesystem-plugin/branch/master/graph/badge.svg?style=flat-square\n[codecoverage]: https://codecov.io/gh/iGitScor/webpack-filesystem-plugin\n[dependencyci-badge]: https://dependencyci.com/github/iGitScor/webpack-filesystem-plugin/badge?style=flat-square\n[dependencyci]: https://dependencyci.com/github/iGitScor/webpack-filesystem-plugin\n[dependencies-badge]: https://david-dm.org/iGitScor/webpack-filesystem-plugin/status.svg?style=flat-square\n[dependencies]: https://david-dm.org/iGitScor/webpack-filesystem-plugin\n[devDependencies-badge]: https://david-dm.org/iGitScor/webpack-filesystem-plugin/dev-status.svg?style=flat-square\n[devDependencies]: https://david-dm.org/iGitScor/webpack-filesystem-plugin?type=dev\n[license-badge]: https://img.shields.io/npm/l/webpack-filesystem-plugin.svg?style=flat-square\n[license]: https://github.com/iGitScor/webpack-filesystem-plugin/blob/master/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figitscor%2Fwebpack-filesystem-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figitscor%2Fwebpack-filesystem-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figitscor%2Fwebpack-filesystem-plugin/lists"}