2017-11-03 05:26:07 +00:00
|
|
|
let mix = require('laravel-mix');
|
|
|
|
var path = require('path');
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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.less('resources/assets/less/app.less', 'public/css')
|
2017-12-03 01:20:26 +00:00
|
|
|
.copy('node_modules/icheck/skins/square/blue.png', 'public/css/blue.png')
|
|
|
|
.sass('resources/assets/sass/app.scss', 'public/css')
|
2017-11-03 05:26:07 +00:00
|
|
|
.js('resources/assets/js/app.js', 'public/js')
|
2017-12-03 01:20:26 +00:00
|
|
|
.less('resources/assets/less/adminlte-app.less','public/css/adminlte-app.css')
|
|
|
|
.combine([
|
|
|
|
'public/css/app.css',
|
|
|
|
'node_modules/admin-lte/dist/css/skins/_all-skins.css',
|
|
|
|
'public/css/adminlte-app.css',
|
|
|
|
'node_modules/icheck/skins/square/blue.css',
|
|
|
|
'public/css/toastr.css'
|
|
|
|
], 'public/css/all.css')
|
2017-11-03 05:26:07 +00:00
|
|
|
.webpackConfig({
|
|
|
|
resolve: {
|
|
|
|
modules: [
|
|
|
|
path.resolve(__dirname, 'vendor/laravel/spark/resources/assets/js'),
|
|
|
|
'node_modules'
|
|
|
|
],
|
|
|
|
alias: {
|
|
|
|
'vue$': 'vue/dist/vue.js'
|
|
|
|
}
|
|
|
|
}
|
2017-12-03 01:20:26 +00:00
|
|
|
});
|