Skip to content

Instantly share code, notes, and snippets.

@dzava
Created December 13, 2017 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dzava/41e7b2219aeb2155023b65272dc15f92 to your computer and use it in GitHub Desktop.
Save dzava/41e7b2219aeb2155023b65272dc15f92 to your computer and use it in GitHub Desktop.
Laravel mix hot module replacement for tailwindcss
require('../less/app.less')
module.exports = {
plugins: [
require('tailwindcss')('tailwind.js'),
],
}
const mix = require('laravel-mix')
mix.webpackConfig({
module: {
rules: [
{test: /\.less$/, loader: 'postcss-loader'},
],
},
})
mix.js('resources/assets/js/app.js', 'public/js')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment