Skip to content

Instantly share code, notes, and snippets.

@GantMan
Created January 9, 2020 17:43
Show Gist options
  • Save GantMan/cfce597e223e6361d9bdc9a75c8deaff to your computer and use it in GitHub Desktop.
Save GantMan/cfce597e223e6361d9bdc9a75c8deaff to your computer and use it in GitHub Desktop.
Copying the wasm file to public
"scripts": {
"wasm": "cp node_modules/@tensorflow/tfjs-backend-wasm/dist/tfjs-backend-wasm.wasm ./public",
"winwasm": "PowerShell -Command cp node_modules/@tensorflow/tfjs-backend-wasm/dist/tfjs-backend-wasm.wasm ./public -Force",
"start": "yarn wasm && react-scripts start",
"build": "yarn wasm && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment