2020-04-10 20:32:12 +02:00
|
|
|
const mix = require('laravel-mix');
|
|
|
|
const tailwindcss = require('tailwindcss');
|
2022-12-01 23:39:16 +01:00
|
|
|
const atImport = require('postcss-import');
|
|
|
|
const nested = require('tailwindcss/nesting');
|
2020-04-10 20:32:12 +02:00
|
|
|
|
2023-05-16 17:19:56 +02:00
|
|
|
mix.setResourceRoot('/');
|
|
|
|
|
2020-04-10 20:32:12 +02:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Mix Asset Management
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Mix provides a clean, fluent API for defining some Webpack build steps
|
|
|
|
| for your Laravel application. By default, we are compiling the Sass
|
|
|
|
| file for the application as well as bundling up all the JS files.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
mix.js('resources/js/app.js', 'public/js')
|
2022-12-01 23:39:16 +01:00
|
|
|
.vue({version: 2})
|
|
|
|
.postCss('resources/css/app.css', 'public/css', [atImport(), nested(), tailwindcss('./tailwind.config.js')])
|
2023-05-16 17:19:56 +02:00
|
|
|
.copy('resources/img', 'public/img');
|