Skip to content

Commit

Permalink
fix: Add webpack config.node.__dirname to resolve #198 related: #199
Browse files Browse the repository at this point in the history
  • Loading branch information
saltyshiomix committed Sep 23, 2021
1 parent b618360 commit 9e6da97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/with-javascript-tailwindcss/renderer/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module.exports = {
webpack: (config, { isServer }) => {
if (!isServer) {
config.target = 'electron-renderer';
config.node = {
__dirname: true,
};
}

return config;
Expand Down

0 comments on commit 9e6da97

Please sign in to comment.