Skip to content

Commit

Permalink
Better node module support
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Mar 21, 2018
1 parent 74be0ab commit 978a18f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
18 changes: 1 addition & 17 deletions README.md
Expand Up @@ -14,25 +14,9 @@ Usage:

```js
// In your tailwind config
import transitionsPlugin from 'glhd-tailwindcss-transitions';

// ...

{
plugins: [
transitionsPlugin(),
],
}
```

Using require() syntax:

```js
// In your tailwind config

{
plugins: [
require('glhd-tailwindcss-transitions').default(),
require('glhd-tailwindcss-transitions')(),
],
}
```
Expand Down
7 changes: 2 additions & 5 deletions packages/glhd-tailwindcss-transitions/README.md
Expand Up @@ -12,13 +12,10 @@ Usage:

```js
// In your tailwind config
import transitionsPlugin from 'glhd-tailwindcss-transitions';

// ...

{
plugins: [
transitionsPlugin(),
require('glhd-tailwindcss-transitions')(/* Custom config can go here */),
],
}
```
Expand Down Expand Up @@ -117,4 +114,4 @@ By default, the plugin provides the following utilities:
.transition-delay-none {
transition-delay: 0s;
}
```
```
8 changes: 6 additions & 2 deletions packages/glhd-tailwindcss-transitions/src/index.js
@@ -1,3 +1,7 @@

export { default } from './plugin';
export { default as defaultConfig } from './defaultConfig';
import plugin from './plugin';
import defaultConfig from './defaultConfig';

module.exports = plugin;
module.exports.default = plugin;
module.exports.defaultConfig = defaultConfig;

0 comments on commit 978a18f

Please sign in to comment.