40 lines
1.2 KiB
JavaScript
Vendored
40 lines
1.2 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.options({
|
|
postCss: [
|
|
require('postcss-discard-comments')({
|
|
removeAll: true
|
|
})
|
|
]
|
|
});
|
|
|
|
mix.js("resources/js/app.js", "public/b-o/js")
|
|
.vue({ version: 2 })
|
|
.sass("resources/sass/app.scss", "public/b-o/css")
|
|
.copy(
|
|
"node_modules/@fortawesome/fontawesome-free/webfonts",
|
|
"public/webfonts"
|
|
);
|
|
|
|
//add front theme mix
|
|
mix.js('resources/views/front/sable/js/app.js', 'public/sable/js')
|
|
.sass('resources/views/front/sable/sass/app.scss', 'public/sable/css')
|
|
.options({
|
|
processCssUrls: false
|
|
})
|
|
.version();
|
|
|
|
|
|
mix.copyDirectory('resources/views/front/sable/img', 'public/sable/img/')
|
|
.copyDirectory('resources/views/front/sable/fonts', 'public/sable/fonts/');
|