Skip to content

Commit

Permalink
Update tailwind starter
Browse files Browse the repository at this point in the history
- Bump Reason react version
- Add purge for tailwind css
  • Loading branch information
bodhish committed Jun 20, 2020
1 parent e2313d6 commit 216f6ca
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 54 deletions.
68 changes: 30 additions & 38 deletions templates/tailwind-starter/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions templates/tailwind-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"dependencies": {
"react": "^16.13.1",
"react-dom": "^16.13.1",
"reason-react": ">=0.8.0"
"reason-react": ">=0.9.0"
},
"scripts": {
"dev": "parcel index.html",
"build": "parcel build index.html",
"test": "echo \"Error: run tests from root\" && exit 1",
"re:build": "bsb -make-world -clean-world",
"re:watch": "bsb -make-world -clean-world -w"
"re:watch": "bsb -make-world -clean-world -w",
"dev": "bsb -make-world -clean-world && parcel index.html"
}
}
13 changes: 0 additions & 13 deletions templates/tailwind-starter/src/index.html

This file was deleted.

11 changes: 11 additions & 0 deletions templates/tailwind-starter/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
theme: {},
purge: {
content: ["./src/**/*.html", "./src/**/*.re", "./src/**/*.bs.js"],
},
};

// Add the following if you want to whitelist classes
// options: {
// whitelistPatterns: [/^bg-/, /^text-/, /^border-/, /^hover:/],
// },

0 comments on commit 216f6ca

Please sign in to comment.