From 805ef858aef59e0ab661fee6666a99f0190bc9ad Mon Sep 17 00:00:00 2001 From: jeffinsam Date: Sun, 17 Nov 2019 10:44:14 +0530 Subject: [PATCH 1/2] docs(readme): update ignore instructions --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index faf44edf..ee39ce58 100644 --- a/README.md +++ b/README.md @@ -300,6 +300,23 @@ module.exports = { ], }; ``` +⚠️ Note that only relative path should be provided to ignore option, example to ignore `src/assets/subfolder/ignorfile.js` : + +**webpack.config.js** + +```js +module.exports = { + plugins: [ + new CopyPlugin([ + { + from: 'src/assets', + to: 'dest/', + ignore: ['subfolder/ingorefile.js'], + }, + ]), + ], +}; +``` #### `flatten` From 3b08bd16776d064ad6efb9268024ef8435ef7237 Mon Sep 17 00:00:00 2001 From: jeffin sam Date: Mon, 18 Nov 2019 16:14:56 +0530 Subject: [PATCH 2/2] Docs(readme) : Typo correction Co-Authored-By: Anix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee39ce58..9e83962f 100644 --- a/README.md +++ b/README.md @@ -300,7 +300,7 @@ module.exports = { ], }; ``` -⚠️ Note that only relative path should be provided to ignore option, example to ignore `src/assets/subfolder/ignorfile.js` : +> ⚠️ Note that only relative path should be provided to ignore option, an example to ignore `src/assets/subfolder/ignorfile.js` : **webpack.config.js**