( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
const mix = require('laravel-mix');
require('laravel-mix-purgecss');
/*
|--------------------------------------------------------------------------
| 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
.scripts([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.bundle.js',
'node_modules/bs-custom-file-input/dist/bs-custom-file-input.js',
'node_modules/clipboard/dist/clipboard.min.js',
'resources/js/functions.js',
], 'public/js/app.js')
.sass('resources/sass/app.scss', 'public/css')
.sass('resources/sass/app.rtl.scss', 'public/css')
.sass('resources/sass/app.dark.scss', 'public/css')
.sass('resources/sass/app.rtl.dark.scss', 'public/css')
.purgeCss({
safelist: {
greedy: [
/* Bootstrap */
/popover/,
/tooltip/,
/modal/,
/fade/,
/show/,
/hide/,
/alert/,
/badge/,
/bg/,
/arrow/,
/collapse/,
/collapsing/
]
},
enabled: true
});