Created
March 14, 2018 16:53
-
-
Save jameslkingsley/d5e39c917be0ed2f207780a7694d573c to your computer and use it in GitHub Desktop.
Tailwind Build Error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
plugins: [ | |
require('./resources/assets/js/plugins/transition')({ | |
default: 0.15, | |
slow: 0.25, | |
}), | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default options => { | |
return ({ rule, addUtilities }) => { | |
let transitions = []; | |
for (let name in options) { | |
transitions.push( | |
selector(name === 'default' ? '.transition' : `.transition-${name}`, { | |
'transition': `all ${options[name]}s ease` | |
}) | |
); | |
} | |
addUtilities([ | |
...transitions | |
]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
let tailwindcss = require('tailwindcss'); | |
mix | |
.js('resources/assets/js/app.js', 'public/js') | |
.sass('resources/assets/sass/app.scss', 'public/css') | |
.version() | |
.options({ | |
processCssUrls: false, | |
postCss: [tailwindcss('tailwind.js')] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment