From 005314cbd5da8b3e2a4442cd54a6206ee2b1301e Mon Sep 17 00:00:00 2001 From: Daichi Yamauchi <57288041+daichi-yamauchi@users.noreply.github.com> Date: Tue, 12 Apr 2022 15:43:42 +0900 Subject: [PATCH] fix: support context of webpack.config --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 4e1abc2..31288b8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -90,7 +90,7 @@ class FontminPlugin { .map(filename => { return { filename, - stats: fs.statSync(filename), + stats: fs.statSync(path.join(compilation.options.context, filename)), } }) .value()