Testing out a sample javascript code snippet.
Locating a script named simple.js
in the demos
directory.
Executing the demo using the command
yarn build-demos && http-server demos/
The script simple.js
is compiled to simple_bundle.js
and the server functions properly.
However, restarting the server is required every time simple.js
is modified.
Looking for a shortcut to avoid this process.
No prior knowledge about npm
and webpack
.
Seeking assistance in resolving this issue.
Listing my package.json details below:
{
"name": "@magenta/sketch",
"version": "0.2.0",
"description": "Make sketches in the browser with machine learning.",
"main": "es5/index.js",
"types": "es5/index.d.ts",
"jsdelivr": "dist/magentasketch.js",
"unpkg": "dist/magentasketch.js",
"dependencies": {
"@tensorflow/tfjs": "^1.0.2"
},
...
"url": "https://github.com/tensorflow/magenta-js.git"
}
}