From 9e6da97d99249ef6a0591f180f57703579163498 Mon Sep 17 00:00:00 2001 From: Shiono Yoshihide Date: Fri, 24 Sep 2021 08:08:59 +0900 Subject: [PATCH] fix: Add webpack config.node.__dirname to resolve #198 related: #199 --- examples/with-javascript-tailwindcss/renderer/next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/with-javascript-tailwindcss/renderer/next.config.js b/examples/with-javascript-tailwindcss/renderer/next.config.js index a046706a..b40838f9 100644 --- a/examples/with-javascript-tailwindcss/renderer/next.config.js +++ b/examples/with-javascript-tailwindcss/renderer/next.config.js @@ -2,6 +2,9 @@ module.exports = { webpack: (config, { isServer }) => { if (!isServer) { config.target = 'electron-renderer'; + config.node = { + __dirname: true, + }; } return config;