We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have issue with my dev stack.
I am using laravel webpack.mix.js and tailwindcss + sass. My issue is that I need call sass task after .blade.php changed for tailwind compiling.
Default behavior is that when I save the .blade.php, browsersync only reload browser window without sass, postcss compiling. Can you help me?
This is my webpack.mix.js file:
const mix = require('laravel-mix'); require('laravel-mix-tailwind'); // or const tailwindcss = require('tailwindcss') mix.js('resources/assets/js/app-front.js', 'public/js') .sass('resources/assets/sass/app-front.scss', 'public/css') .tailwind() .sourceMaps() .options({ processCssUrls: false, // postCss: [ tailwindcss('./tailwind.config.js') ], }) .version() .browserSync({ proxy: 'cee.local', injectChanges: true, files: [ "public/css/app-front.css", "public/js/app-front.js", "public/js/vendors.js", "public/images/**/*", // "resources/lang/**/*", // "resources/views/**/*.blade.php", { match: ["resources/views/**/*.blade.php",], fn: function (event, file) { console.log('php changes'); mix.tailwind(); // launch tailwind }, }, ], });
The text was updated successfully, but these errors were encountered:
No one with same issue?
Sorry, something went wrong.
No branches or pull requests
I have issue with my dev stack.
I am using laravel webpack.mix.js and tailwindcss + sass.
My issue is that I need call sass task after .blade.php changed for tailwind compiling.
Default behavior is that when I save the .blade.php, browsersync only reload browser window without sass, postcss compiling.
Can you help me?
This is my webpack.mix.js file:
The text was updated successfully, but these errors were encountered: