2018-10-04 19:10:43 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-11-22 12:12:41 +01:00
|
|
|
mix.webpackConfig({
|
|
|
|
resolve: {
|
|
|
|
extensions: ['.ts']
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.ts$/,
|
2018-12-13 00:23:21 +01:00
|
|
|
loader: 'ts-loader',
|
|
|
|
options: { appendTsSuffixTo: [/\.vue$/] },
|
|
|
|
exclude: /node_modules/,
|
2018-11-22 12:12:41 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2018-11-26 00:28:22 +01:00
|
|
|
mix.js('resources/js/src/client/client_edit.ts', 'public/js');
|
2018-12-02 11:42:06 +01:00
|
|
|
mix.js('resources/js/src/client/client_create.ts', 'public/js');
|
2018-12-13 00:23:21 +01:00
|
|
|
mix.js('resources/js/src/settings/localization.ts', 'public/js');
|
2018-12-02 11:42:06 +01:00
|
|
|
mix.js('node_modules/@coreui/coreui/dist/js/coreui.js', 'public/js');
|
2018-10-16 13:42:43 +02:00
|
|
|
|
|
|
|
mix.scripts([
|
2018-12-13 12:01:33 +01:00
|
|
|
'js/src/bootstrap.js'
|
2018-10-16 13:42:43 +02:00
|
|
|
], 'public/js/ninja.js');
|
|
|
|
|
2018-11-07 10:36:42 +01:00
|
|
|
mix.minify('public/js/ninja.js');
|
2018-12-02 11:42:06 +01:00
|
|
|
mix.minify('public/js/coreui.js');
|
|
|
|
mix.minify('public/js/client_edit.js');
|
|
|
|
mix.minify('public/js/client_create.js');
|
2018-12-13 00:23:21 +01:00
|
|
|
mix.minify('public/js/localization.js');
|
2018-11-07 10:36:42 +01:00
|
|
|
|
2018-10-16 13:42:43 +02:00
|
|
|
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');
|
|
|
|
|
2018-11-07 10:36:42 +01:00
|
|
|
mix.minify('public/css/ninja.css');
|
|
|
|
|
2018-10-16 13:42:43 +02:00
|
|
|
mix.copyDirectory('node_modules/font-awesome/fonts', 'public/fonts');
|
|
|
|
|
|
|
|
mix.version();
|