Skip to content

Commit cc9979f

Browse files
committed
Fix readme.md
1 parent 870e05b commit cc9979f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
This is a really simple project that shows the usage of Next.js with TypeScript, Web Worker and Comlink.
44

5+
## Article for more detail.
6+
7+
- English [https://file-translate.com/en/blog/2020-06-18](https://file-translate.com/en/blog/2020-06-18)
8+
- 日本語 [https://file-translate.com/ja/blog/2020-06-18](https://file-translate.com/ja/blog/2020-06-18)
9+
510
## How to use it?
611

712
### Using `create-next-app`

next.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
const WorkerPlugin = require('worker-plugin')
1+
const WorkerPlugin = require("worker-plugin");
22

33
module.exports = {
44
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
55
if (!isServer) {
66
config.plugins.push(
77
new WorkerPlugin({
88
// use "self" as the global object when receiving hot updates.
9-
globalObject: 'self',
9+
globalObject: "self",
1010
})
11-
)
11+
);
1212
}
13-
return config
13+
return config;
1414
},
15-
}
15+
};

0 commit comments

Comments
 (0)