npm install
npm run build # ./dist folder will be created
npm run start
Unlike typescript+react project, the browserslist in this project does not contain node
because it causes error on building by incompatible output chunk format.
"browserslist": [
"edge >= 79",
"firefox >= 68",
"chrome >= 67",
"safari > 14",
"opera >= 54",
"ios_saf >= 14.4",
"android >= 67",
"op_mob >= 48",
"and_chr >= 67",
"and_ff >= 68",
"samsung >= 9.2",
"node >= 10.4.0", <-- This line does not exist in this project.
"electron >= 4.0.0"
]
When building with webpack.config.js
in this project, it automatically copies blsjs.wasm
and clvm_rs_bg.wasm
from node_modules/clvm_tools/browsers
to dist/
folder.
If you publish or redistribute your project with bundled blsjs.wasm
and/or clvm_rs_bg.wasm
, you must be compliant with Apache2.0 License provided by Chia-Network.