2017-06-19 22:38:33 +01:00
|
|
|
let mix = require('laravel-mix');
|
|
|
|
|
2018-06-16 16:29:27 +01:00
|
|
|
require('laravel-mix-purgecss')
|
|
|
|
|
2017-06-19 22:38:33 +01: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
|
|
|
|
.copyDirectory('node_modules/ionicons/fonts', 'public/fonts')
|
2023-10-27 13:22:33 +01:00
|
|
|
.sass('resources/assets/sass/dashboard.scss', 'public/dist/css/dashboard')
|
|
|
|
.sass('resources/assets/sass/app.scss', 'public/dist/css')
|
2018-06-16 16:29:27 +01:00
|
|
|
.purgeCss()
|
2017-06-19 22:38:33 +01:00
|
|
|
.options({
|
|
|
|
processCssUrls: false
|
|
|
|
})
|
2017-09-30 11:20:09 +01:00
|
|
|
.js('resources/assets/js/app.js', 'public/dist/js').extract(['vue', 'chart.js'])
|
2017-06-19 22:38:33 +01:00
|
|
|
.scripts([
|
2017-07-17 22:22:08 +01:00
|
|
|
'public/dist/js/app.js',
|
2017-06-19 22:38:33 +01:00
|
|
|
'node_modules/es5-shim/es5-shim.js',
|
|
|
|
'node_modules/es5-shim/es5-sham.js',
|
|
|
|
'node_modules/jquery/dist/jquery.min.js',
|
|
|
|
'node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js',
|
|
|
|
'node_modules/moment/min/moment-with-locales.min.js',
|
|
|
|
'node_modules/lodash/lodash.min.js',
|
|
|
|
'node_modules/messenger/build/js/messenger.min.js',
|
|
|
|
'node_modules/sortablejs/Sortable.min.js',
|
|
|
|
'node_modules/jquery-minicolors/jquery.minicolors.min.js',
|
|
|
|
'node_modules/jquery-sparkline/jquery.sparkline.min.js',
|
|
|
|
'node_modules/sweetalert2/dist/sweetalert2.min.js',
|
|
|
|
'node_modules/livestamp/livestamp.js',
|
|
|
|
'node_modules/jquery-serializeobject/jquery.serializeObject.js',
|
2017-07-17 22:22:08 +01:00
|
|
|
'resources/assets/js/cachet.js',
|
2017-06-19 22:38:33 +01:00
|
|
|
], 'public/dist/js/all.js')
|
|
|
|
|
2019-01-26 11:10:32 +00:00
|
|
|
if (mix.inProduction()) {
|
2017-06-19 22:38:33 +01:00
|
|
|
mix.version();
|
|
|
|
}
|