@
yang991178 #36 试了一下,没有用,不知道我的实验方法对不对。另外 npm build 的时候有 warnning,你看看有没有关系。不懂 js 。
```
npm run build
> fluent-reader@0.3.3 build /home/jemyzhang/workspace/github/fluent-reader
> webpack --config ./webpack.config.js
Hash: f0f580dd344ad2582a25bc9af38196972d8ebd8e
Version: webpack 4.43.0
Child
Hash: f0f580dd344ad2582a25
Time: 37975ms
Built at: 2020/06/22 上午 10:59:26
Asset Size Chunks Chunk Names
electron.js 189 KiB 0 [emitted] main
Entrypoint main = electron.js
[0] external "path" 42 bytes {0} [built]
[1] external "fs" 42 bytes {0} [built]
[3] external "electron" 42 bytes {0} [built]
[4] external "util" 42 bytes {0} [built]
[5] external "assert" 42 bytes {0} [built]
[9] external "events" 42 bytes {0} [built]
[20] ./src/electron.ts 3.57 KiB {0} [built]
[25] external "constants" 42 bytes {0} [built]
[27] external "stream" 42 bytes {0} [built]
[32] (webpack)/buildin/module.js 497 bytes {0} [built]
[33] external "crypto" 42 bytes {0} [built]
[46] external "os" 42 bytes {0} [built]
[89] ./src/scripts/update-scripts.ts 373 bytes {0} [built]
+ 77 hidden modules
WARNING in ./node_modules/write-file-atomic/index.js
Module not found: Error: Can't resolve 'worker_threads' in '/home/jemyzhang/workspace/github/fluent-reader/node_modules/write-file-atomic'
@ ./node_modules/write-file-atomic/index.js
@ ./node_modules/conf/index.js
@ ./node_modules/electron-store/index.js
@ ./src/electron.ts
Child
Hash: bc9af38196972d8ebd8e
Time: 51701ms
Built at: 2020/06/22 上午 10:59:39
Asset Size Chunks Chunk Names
index.html 495 bytes [emitted]
index.js 1.76 MiB 0 [emitted] main
index.js.map 6.23 MiB 0 [emitted] [dev] main
Entrypoint main = index.js index.js.map
[25] ./src/scripts/models/app.ts 12.4 KiB {0} [built]
[28] ./node_modules/@fluentui/react/lib/index.js + 1 modules 369 bytes {0} [built]
| 2 modules
[34] ./src/scripts/models/page.ts 7.8 KiB {0} [built]
[35] ./node_modules/react-redux/es/index.js + 24 modules 50.3 KiB {0} [built]
| 25 modules
[39] ./src/scripts/utils.ts 4.66 KiB {0} [built]
[40] external "electron" 42 bytes {0} [built]
[49] ./src/scripts/models/source.ts 13.2 KiB {0} [built]
[50] ./src/scripts/models/item.ts 11.2 KiB {0} [built]
[55] ./src/scripts/models/feed.ts 12.9 KiB {0} [built]
[59] ./src/scripts/settings.ts 6.9 KiB {0} [built]
[72] external "fs" 42 bytes {0} [built]
[74] ./src/scripts/models/group.ts 10.8 KiB {0} [built]
[87] ./src/scripts/db.ts 788 bytes {0} [built]
[249] ./src/index.tsx 1.91 KiB {0} [built]
[261] ./src/scripts/reducer.ts 632 bytes {0} [built]
+ 408 hidden modules
WARNING in ./node_modules/write-file-atomic/index.js
Module not found: Error: Can't resolve 'worker_threads' in '/home/jemyzhang/workspace/github/fluent-reader/node_modules/write-file-atomic'
@ ./node_modules/write-file-atomic/index.js
@ ./node_modules/conf/index.js
@ ./node_modules/electron-store/index.js
@ ./src/scripts/settings.ts
@ ./src/index.tsx
Child HtmlWebpackCompiler:
1 asset
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html 781 bytes {0} [built]
```