adrema/webpack.mix.js

26 lines
813 B
JavaScript
Raw Normal View History

2020-04-10 20:32:12 +02:00
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
const atImport = require("postcss-import");
2021-04-10 19:45:11 +02:00
const nested = require('postcss-nested');
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')
2021-04-10 19:45:11 +02:00
.vue({ version: 2 })
2020-04-10 20:32:12 +02:00
.postCss('resources/css/app.css', 'public/css', [
atImport(),
2021-04-10 19:45:11 +02:00
nested(),
2021-04-11 20:35:18 +02:00
tailwindcss('./tailwind.config.js'),
2020-04-10 20:32:12 +02:00
])
.copy('resources/img', 'public/img')
.sourceMaps();