This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/webpack.mix.js

37 lines
1.2 KiB
JavaScript
Raw Normal View History

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')
.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')
.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: [
'node_modules'
],
alias: {
'vue$': 'vue/dist/vue.min.js'
2017-11-03 05:26:07 +00:00
}
}
});