Skip to content

Instantly share code, notes, and snippets.

@devfaysal
Last active Aug 20, 2019
Embed
What would you like to do?
Up and running Tailwindcss in Laravel app
@import "./node_modules/tailwindcss/base";
@import "./node_modules/tailwindcss/components";
@import "./node_modules/tailwindcss/utilities";
"devDependencies": {
"@tailwindcss/custom-forms": "^0.2.0",
"postcss": "^7.0.17",
"resolve-url-loader": "2.3.1",
"sass": "^1.22.5",
"sass-loader": "7.*",
"tailwindcss": "^1.0.5",
}
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.options({
processCssUrls: false,
postCss: [tailwindcss('./tailwind.config.js')],
})
.version();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment