Skip to content

Commit 9ec23ac

Browse files
docs: improve (#495)
1 parent 6f34c86 commit 9ec23ac

File tree

4 files changed

+483
-171
lines changed

4 files changed

+483
-171
lines changed

.github/workflows/nodejs.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ jobs:
5757
os: [ubuntu-latest, windows-latest, macos-latest]
5858
node-version: [10.x, 12.x, 14.x]
5959
webpack-version: [latest, next]
60-
exclude:
61-
- os: macos-latest
62-
node-version: 12.x
63-
webpack-version: latest
64-
- os: macos-latest
65-
node-version: 14.x
66-
webpack-version: latest
6760

6861
runs-on: ${{ matrix.os }}
6962

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,35 @@ Result:
876876
nested-file.txt
877877
```
878878

879+
#### Ignoring files
880+
881+
**webpack.config.js**
882+
883+
```js
884+
module.exports = {
885+
plugins: [
886+
new CopyPlugin({
887+
patterns: [
888+
{
889+
from: path.posix.join(
890+
path.resolve(__dirname, 'src').replace(/\\/g, '/'),
891+
'**/*'
892+
),
893+
globOptions: {
894+
ignore: [
895+
// Ignore all `txt` files
896+
'**/*.txt',
897+
// Ignore all files in all subdirectories
898+
'**/subdir/**',
899+
],
900+
},
901+
},
902+
],
903+
}),
904+
],
905+
};
906+
```
907+
879908
## Contributing
880909

881910
Please take a moment to read our contributing guidelines if you haven't yet done so.

0 commit comments

Comments
 (0)