Created
January 29, 2020 01:40
-
-
Save mdmunir/9fe17ec68c9e3187acace768ea10760b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* File laramix/main.less */ | |
@import '../node_modules/bootstrap/dist/css/bootstrap.css'; | |
@import '../node_modules/admin-lte/dist/css/AdminLTE.css'; | |
@import '../node_modules/admin-lte/dist/css/skins/_all-skins.css'; | |
@import '../node_modules/font-awesome/css/font-awesome.css'; | |
@import '../node_modules/admin-lte/plugins/iCheck/all.css'; | |
@import 'css/app.less'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mix = require('laravel-mix'); | |
/* | |
|-------------------------------------------------------------------------- | |
| 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 your application, as well as bundling up your JS files. | |
| | |
*/ | |
mix.setPublicPath('web') | |
.options({processCssUrls: false}) | |
.disableNotifications(); | |
mix.scripts([ | |
'node_modules/jquery/dist/jquery.js', | |
'laramix/js/sidebar-adminlte.js', | |
'vendor/yiisoft/yii2/assets/yii.js', | |
'node_modules/bootstrap/dist/js/bootstrap.js', | |
'node_modules/admin-lte/dist/js/adminlte.js', | |
'node_modules/admin-lte/plugins/iCheck/icheck.js', | |
], 'web/mix/js/static-main.js'); | |
mix.less('laramix/main.less', 'web/mix/css/static-main.css'); | |
mix.copy('node_modules/bootstrap/dist/fonts/', 'web/mix/fonts/') | |
.copy('node_modules/font-awesome/fonts/', 'web/mix/fonts/') | |
.copy('node_modules/admin-lte/plugins/iCheck/', 'web/mix/css/'); | |
mix.sourceMaps(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment