From 002a1b6e0566f25d57e42bab2ae2366a634a73b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Martin?= Date: Fri, 10 Jan 2020 12:01:28 +0100 Subject: [PATCH] add `nodir` option to avoid error during build When building with the eject method, it will result in the error `EISDIR: illegal operation on a directory`. The solution to this is to add the `nodir` option, as specified here: https://github.com/FullHuman/purgecss-webpack-plugin/issues/39 --- guides/react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/react.md b/guides/react.md index 0f0ebf6..20466e4 100644 --- a/guides/react.md +++ b/guides/react.md @@ -70,7 +70,7 @@ const glob = require('glob-all') // for more information about PurgeCSS. // Specify the path of the html files and source files new PurgecssPlugin({ - paths: [paths.appHtml, ...glob.sync(`${paths.appSrc}/*`)] + paths: [paths.appHtml, ...glob.sync(`${paths.appSrc}/*`, { nodir: true })] }), ```