Created
December 13, 2017 11:33
-
-
Save dzava/41e7b2219aeb2155023b65272dc15f92 to your computer and use it in GitHub Desktop.
Laravel mix hot module replacement for tailwindcss
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
require('../less/app.less') |
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
module.exports = { | |
plugins: [ | |
require('tailwindcss')('tailwind.js'), | |
], | |
} |
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
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