adrema/webpack.mix.js

22 lines
817 B
JavaScript
Raw Normal View History

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
/*
|--------------------------------------------------------------------------
| 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')])
.copy('resources/img', 'public/img')
.sourceMaps();