├── .codecov.yml ├── .editorconfig ├── .github ├── CONTRIBUTING.md ├── FUNDING.yml ├── ISSUE_TEMPLATE │ └── bug_report.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── test.yml ├── .gitignore ├── .npmignore ├── .prettierrc ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── README.npm.md ├── SECURITY.md ├── package.json ├── package.npm.json ├── rollup.config.mjs ├── src ├── index.d.ts ├── index.js └── utils.js └── test ├── .babelrc ├── .editorconfig ├── cases ├── css-entry-only │ ├── expected │ │ ├── assets │ │ │ └── css │ │ │ │ └── style.css │ │ └── style.css │ ├── src │ │ └── style.css │ └── webpack.config.js ├── css-entry-with-ignored-hmr │ ├── expected │ │ ├── script.js │ │ └── style.css │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── css-entry-with-query │ ├── expected │ │ ├── script.js │ │ └── style.css │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── css-import │ ├── expected │ │ ├── main.css │ │ ├── main.js │ │ └── style.css │ ├── src │ │ ├── main.js │ │ ├── style.css │ │ └── vendor.css │ └── webpack.config.js ├── exception-option-stage-invalid │ ├── expected │ │ ├── assets.json │ │ └── style.css │ ├── src │ │ └── style.css │ └── webpack.config.js ├── multi-configuration │ ├── expected │ │ ├── scriptA.js │ │ ├── scriptB.js │ │ ├── styleA.css │ │ └── styleB.css │ ├── src │ │ ├── foo.js │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── multi-js-entry-css-entry-extensions-do-not-match │ ├── expected │ │ ├── script.js │ │ ├── style.css │ │ └── style.js │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── multi-js-entry-css-entry-mjs-output-css-output │ ├── expected │ │ ├── script.mjs │ │ └── style.css │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── multi-js-entry-css-entry │ ├── expected │ │ ├── script.js │ │ └── style.css │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── multi-mjs-entry-css-entry │ ├── expected │ │ ├── script.mjs │ │ └── style.css │ ├── src │ │ ├── script.mjs │ │ └── style.css │ └── webpack.config.js ├── multi-page+styles │ ├── expected │ │ ├── about.js │ │ ├── apage.js │ │ ├── bpage-other.js │ │ └── styles.css │ ├── src │ │ ├── about.html │ │ ├── apage.css │ │ ├── apage.js │ │ ├── bpage.css │ │ ├── bpage.js │ │ └── common.css │ └── webpack.config.js ├── option-extension-array │ ├── expected │ │ ├── script.js │ │ ├── style.css │ │ └── style.js │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── option-extension-regexp │ ├── expected │ │ ├── script.js │ │ ├── style.css │ │ └── style.js │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── option-ignore-array │ ├── expected │ │ ├── script.js │ │ └── style.css │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── option-ignore-string │ ├── expected │ │ ├── script.js │ │ └── style.css │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js ├── option-remove │ ├── expected │ │ ├── style.css │ │ ├── style.rem.css │ │ └── style.rem.js │ ├── src │ │ └── style.css │ └── webpack.config.js ├── plugin-webpack-manifest │ ├── expected │ │ ├── assets.json │ │ └── style.css │ ├── src │ │ └── style.css │ └── webpack.config.js ├── plugin-wordpress-dependency │ ├── expected │ │ ├── css │ │ │ ├── main.asset.php │ │ │ ├── main.css │ │ │ └── main.css.map │ │ └── js │ │ │ ├── main.asset.php │ │ │ ├── main.js │ │ │ └── main.js.map │ ├── src │ │ ├── js │ │ │ └── main.js │ │ └── sass │ │ │ └── main.scss │ └── webpack.config.js ├── single-js+css-entry-mjs+css-output │ ├── expected │ │ ├── main.css │ │ └── main.mjs │ ├── src │ │ ├── index.css │ │ ├── index.js │ │ └── styles.css │ └── webpack.config.js ├── single-js+css-entry │ ├── expected │ │ ├── main.css │ │ └── main.js │ ├── src │ │ ├── index.css │ │ └── index.js │ └── webpack.config.js ├── single-js-entry-without-ext │ ├── expected │ │ └── main.js │ ├── src │ │ └── index.js │ └── webpack.config.js ├── single-mjs+css-entry │ ├── expected │ │ ├── main.css │ │ └── main.mjs │ ├── src │ │ ├── index.css │ │ └── index.mjs │ └── webpack.config.js ├── single-mjs-entry │ ├── expected │ │ └── main.mjs │ ├── src │ │ └── index.mjs │ └── webpack.config.js ├── vendor+multi-js-entry-css-entry │ ├── expected │ │ ├── script.js │ │ ├── style.css │ │ └── vendor.js │ ├── src │ │ ├── script.js │ │ └── style.css │ └── webpack.config.js └── webpack-concatenate-modules │ ├── expected │ ├── script.js │ └── style.css │ ├── src │ ├── script.js │ └── style.css │ └── webpack.config.js ├── config.js ├── integration.test.js ├── jest.config.js ├── manual ├── issue-webpack-concatenateModules │ ├── .babelrc.js │ ├── README.md │ ├── build │ │ └── assets │ │ │ ├── react-app.js │ │ │ └── react-app.js.LICENSE.txt │ ├── package.json │ ├── src │ │ └── react-app.js │ ├── webpack-build-dev.sh │ ├── webpack-build.sh │ └── webpack.config.js └── issue-webpack-react-components │ ├── .babelrc.json │ ├── README.md │ ├── build │ └── assets │ │ ├── react-app.js │ │ └── react-app.js.LICENSE.txt │ ├── package.json │ ├── src │ └── react-app.js │ ├── webpack-build-dev.sh │ ├── webpack-build.sh │ └── webpack.config.js ├── utils ├── FileSystem │ ├── Module │ │ ├── moduleLoader.js │ │ ├── nocacheLoader.js │ │ └── register.js │ ├── Utils.js │ └── loadModule.js ├── file.js ├── helpers.js └── webpack.js ├── utils_old ├── file.js ├── helpers.js └── webpack.js └── webpack.common.js /.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | status: 3 | project: 4 | default: 5 | target: 90% 6 | patch: 7 | default: 8 | target: 90% 9 | 10 | ignore: 11 | - test/.* 12 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | 7 | [{*.cjs,*.js}] 8 | indent_size = 2 9 | tab_width = 2 10 | 11 | [{*.htm,*.html,*.pug,*.md}] 12 | indent_size = 2 13 | tab_width = 2 14 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing in webpack-remove-empty-scripts 2 | 3 | - [Questions and Suggestions](#question) 4 | - [Issues and Bugs](#issue) 5 | - [Feature Requests](#feature) 6 | - [Pull Request Submission Guidelines](#submit-pr) 7 | - [Commit Message Conventions](#commit) 8 | 9 | ## Got a Question or Suggestion? 10 | 11 | If you have questions or suggestions, please create a new [discussion](https://github.com/webdiscus/webpack-remove-empty-scripts/discussions). 12 | 13 | 14 | ## Found an Issue or Bug? 15 | 16 | Before you submit an issue, please search the issue tracker, 17 | maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available. 18 | 19 | We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it. 20 | 21 | Tell us versions of your environment: 22 | 23 | - OS: macOS, Linux, Windows 24 | - version of Node.js 25 | - version of Webpack 26 | - version of the Plugin 27 | - the use-case that fails 28 | 29 | Ideally create a small repository with a reproducible issue. 30 | 31 | 32 | ## Feature Requests? 33 | 34 | You can _request_ a new feature by creating an [issue](https://github.com/webdiscus/webpack-remove-empty-scripts/issues). 35 | 36 | The title must begins with `[FEATURE]`. 37 | 38 | 39 | ## Pull Request Submission Guidelines 40 | 41 | Before you submit your Pull Request (PR) consider the following guidelines: 42 | 43 | - Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit). 44 | - Your PR must have only `one` commit. If you have many commits, please squash all commits into one. 45 | - Please test your pull request: 46 | - new/changed code `must` be completely covered, at last `95%` 47 | - create a new test case under `./test/cases/` directory 48 | - all already existing tests must be passed: `npm test` 49 | 50 | 51 | ## Commit Conventions 52 | 53 | Each commit message consists of a **header**, a **body** and a **footer**. The header has a special 54 | format that includes a **type**, a **scope** and a **subject**: 55 | 56 | ``` 57 | (): 58 | 59 | 60 | 61 |