Anchor Loader
is an application which can load targetAnchor Application
onAnchor Network
. More details aboutAnchor Application
, you can get the details here : https://github.com/ff13dfly/EasyPolka.
- The program language is not limited.
-
Anchor Loader
can be run both local or on web server. -
Parameters for
Anchor Loader
. Hash is used to sent parameters to Loader.#[anchor name]@[anchor node] //#anchor_name@ws://127.0.0.1:9944
-
If you want to customize your
Anchor Loader
, such as modify the default Anchor or default node, please follow this instructment. The tools is needed. The targetAnchor Application
should beReact
project.- Node.js
- Esbuild
-
Node.js
is needed to create the entry file, default isloader.html
. -
Esbuild
is the default package application, please install it first of all. More details about Esbuild, you can check https://esbuild.github.io/api/.# install esbuild yarn add esbuild
-
Minify the Loader code.
# minify the loader JS ../node_modules/.bin/esbuild react_loader.js --bundle --minify --outfile=loader.min.js
-
Combine the JS code and HTML.
# minify the loader JS node react_to_single.js