Run npm install
to install the packages for this project.
If you haven't already done so, please install Rescript with npm install -g bs-platform
.
To start the Dev Server, you'll need to run two commands:
npm run start:re
npm run start
If you want to test with SSL, do this instead:
npm run start:re
npm run gen-cert
npm run start:secure
npm run gen-cert
will generate snowpack.crt
and snowpack.key
which will be used by npm run start:secure
.
NOTE: You'll need to edit the import statement of the generated Stylez.js
before running npm run start
.
For deployment, there's no problem because it's being dealt with by a script in the build command.
Run npm run build
to generate the bundled code in the build/
folder.