Skip to content

Commit

Permalink
Add a missing config target (electron-renderer) in the next.config.js #…
Browse files Browse the repository at this point in the history
  • Loading branch information
saltyshiomix committed Jul 24, 2019
1 parent 087a79e commit 4c8a5a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/with-javascript-ant-design/renderer/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const withCss = require('@zeit/next-css');

module.exports = withCss({
webpack: (config, { isServer }) => {
config.target = 'electron-renderer';

if (isServer) {
const antStyles = /antd\/.*?\/style\/css.*?/;
const origExternals = [...config.externals];
Expand All @@ -22,6 +24,7 @@ module.exports = withCss({
use: 'null-loader',
});
}

return config
},
});

0 comments on commit 4c8a5a7

Please sign in to comment.