mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
7e57b0f2fd
* Minify js and css * Refactor master layout
38 lines
1.0 KiB
JavaScript
Vendored
38 lines
1.0 KiB
JavaScript
Vendored
const 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 the application as well as bundling up all the JS files.
|
|
|
|
|
*/
|
|
|
|
mix.js('resources/js/app.js', 'public/js/vendor');
|
|
|
|
mix.scripts([
|
|
'node_modules/@coreui/coreui/dist/js/coreui.js',
|
|
//'node_modules/vue/dist/vue.min.js',
|
|
//'node_modules/vue/dist/vue.js',
|
|
'public/js/vendor/app.js'
|
|
], 'public/js/ninja.js');
|
|
|
|
mix.minify('public/js/ninja.js');
|
|
|
|
|
|
mix.styles([
|
|
'node_modules/@coreui/coreui/dist/css/coreui.css',
|
|
'node_modules/@coreui/icons/css/coreui-icons.css',
|
|
'node_modules/font-awesome/css/font-awesome.css'
|
|
], 'public/css/ninja.css');
|
|
|
|
mix.minify('public/css/ninja.css');
|
|
|
|
mix.copyDirectory('node_modules/font-awesome/fonts', 'public/fonts');
|
|
|
|
|
|
mix.version();
|