ldc-boutique-cnc/webpack.mix.js
2021-03-18 08:40:20 +01:00

28 lines
1.1 KiB
JavaScript
Vendored

const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applications. By default, we are compiling the CSS
| file for the application as well as bundling up all the JS files.
|
*/
mix.js('resources/js/app.js', 'public/b-o/js')
.sass('resources/sass/app.scss', 'public/b-o/css');
//add front theme mix
//replace <theme> with you theme folder
// mix.js('resources/views/front/<theme>/js/app.js', 'public/<theme>/js')
// .sass('resources/views/front/<theme>/app.scss', 'public/<theme>/css');
mix.js('resources/views/front/canard/js/app.js', 'public/canard/js')
.sass('resources/views/front/canard/sass/app.scss', 'public/canard/css')
.options({
processCssUrls: false
})
.copyDirectory('resources/views/front/canard/img', 'public/canard/img/')
.copyDirectory('resources/views/front/canard/fonts', 'public/canard/fonts/');