laravel-mix-tailwind icon indicating copy to clipboard operation
laravel-mix-tailwind copied to clipboard

Option to specify config file name

Open ad1199 opened this issue 4 years ago • 1 comments

I have two mix files. One is 'webpack.mix.js' for website and 'webpack.mix.admin.js'. So I have created two tailwind config files. One is 'tailwind.config.js' for 'webpack.mix.js' and another one is 'tailwind.admin.config.js' for 'webpack.mix.admin.js'. The problem is I cannot specify the name of config file in 'webpack.mix.admin.js'. Is there any way I can do it?

ad1199 avatar Nov 10 '20 03:11 ad1199

const tailwindcss = require('tailwindcss');

mix.postCss('src', 'public/css/output.css', [tailwindcss('pathTo.config.js')]);

IlievaDayana avatar Oct 27 '22 06:10 IlievaDayana