Skip to content

Instantly share code, notes, and snippets.

@jameslkingsley
Created March 14, 2018 16:53
Show Gist options
  • Save jameslkingsley/d5e39c917be0ed2f207780a7694d573c to your computer and use it in GitHub Desktop.
Save jameslkingsley/d5e39c917be0ed2f207780a7694d573c to your computer and use it in GitHub Desktop.
Tailwind Build Error
{
...
plugins: [
require('./resources/assets/js/plugins/transition')({
default: 0.15,
slow: 0.25,
}),
]
}
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
]);
}
}
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