No description
Find a file
Per-Victor Persson 4856c177c9 update
2020-12-17 19:15:17 +01:00
.github/workflows Init sloan-extension 2020-09-12 17:13:48 +02:00
src update 2020-12-17 19:15:17 +01:00
.gitattributes Init sloan-extension 2020-09-12 17:13:48 +02:00
.gitignore Init sloan-extension 2020-09-12 17:13:48 +02:00
bsconfig.json update 2020-12-17 19:15:17 +01:00
graphql_schema.json update 2020-12-17 19:15:17 +01:00
manifest.json Add basic extension 2020-10-31 17:40:35 +01:00
package.json update 2020-12-17 19:15:17 +01:00
postcss.config.js Init sloan-extension 2020-09-12 17:13:48 +02:00
README.md update 2020-12-17 19:15:17 +01:00

sloan-extension

A small web-extension to put bookmarks into sloan, built in ReScript

Run Project

Inside the project directory run the following:

yarn # Builds project dependencies
yarn re:watch # Compiles Reason, builds Tailwind CSS and watches for file changes
# And in separate shells run
yarn dev # Starts the server
yarn dev:extension # Starts firefox with the extension loaded

Tailwind CSS Generator

This demo project ships with a built-in "generator" inside the bsconfig.json. Essentially, the generator will watch for changes to your index.css file, and if it changes your tailwind.css file will be automatically re-generated.

Unfortunately, there is a slight delay in generating the tailwind.css file initially (and every time you clean the project), so if you get a compiler error followed by the Building ... /../src/index.css message from Tailwind, simply edit a Reason file to get the PPX to recognize the newly-generated Tailwind file.