Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Show the usage of SerialPort #1

Merged
merged 3 commits into from
Jul 25, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 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';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this is my mistakes...

Hot-fixed with [email protected] 🙏


if (isServer) {
const antStyles = /antd\/.*?\/style\/css.*?/;
const origExternals = [...config.externals];
Expand Down