Skip to content

Commit

Permalink
feat: parallelise async calls and fixes (#690)
Browse files Browse the repository at this point in the history
* fix: typeof import default in dts

* chore: using nuxt convention for indexing type

* chore: initial

* chore: progress

* chore: some cleanup

* chore: splitting utils

* chore: move out viewer

* chore: dev block

* chore: progress

* chore: unnesting await

* chore: rename file

* Update src/viewer.ts

* chore: revert to requireModule for now

* chore: update

* chore: use tw load config

* chore: add some fixes

* chore: condense content paths

* chore: docs to config props

---------

Co-authored-by: Sébastien Chopin <[email protected]>
  • Loading branch information
ineshbose and atinux authored Jun 20, 2023
1 parent 43b224d commit d471e95
Show file tree
Hide file tree
Showing 12 changed files with 409 additions and 350 deletions.
4 changes: 4 additions & 0 deletions docs/content/2.tailwind/1.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ This config has less priority over the [tailwind.config.js](#tailwindconfigjs) f
This is an advanced usage section and intended primarily for Nuxt modules authors.
::

#### `tailwindcss:loadConfig`

Passes any Tailwind configuration read by the module for each (extended) [layer](https://nuxt.com/docs/getting-started/layers)/[path](/getting-started/options#configpath) before merging all of them.

#### `tailwindcss:config`

Passes the resolved vanilla configuration read from all layers and paths with merging using [defu](https://github.com/unjs/defu).
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"description": "TailwindCSS module for Nuxt",
"repository": "nuxt-modules/tailwindcss",
"license": "MIT",
"configKey": "tailwindcss",
"compatibility": {
"nuxt": "^2.9.0 || ^3.0.0-rc.1",
"bridge": true
},
"exports": {
".": {
"require": "./dist/module.cjs",
Expand Down Expand Up @@ -63,4 +68,4 @@
"nuxt": "^3.5.3",
"vitest": "^0.32.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import colors from 'tailwindcss/colors'
const colors = require('tailwindcss/colors')

export default {
module.exports = {
theme: {
extend: {
colors: {
Expand Down
Loading

0 comments on commit d471e95

Please sign in to comment.