From 4c8a5a74af154901bb7f5ae44c667b90c9b3d8b2 Mon Sep 17 00:00:00 2001 From: Yoshihide Shiono Date: Thu, 25 Jul 2019 05:51:52 +0900 Subject: [PATCH] Add a missing config target (electron-renderer) in the next.config.js #38 --- examples/with-javascript-ant-design/renderer/next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/with-javascript-ant-design/renderer/next.config.js b/examples/with-javascript-ant-design/renderer/next.config.js index 4558afaf..55b73cfe 100644 --- a/examples/with-javascript-ant-design/renderer/next.config.js +++ b/examples/with-javascript-ant-design/renderer/next.config.js @@ -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]; @@ -22,6 +24,7 @@ module.exports = withCss({ use: 'null-loader', }); } + return config }, });