mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 23:07:46 +01:00
38 lines
1.0 KiB
JavaScript
Vendored
38 lines
1.0 KiB
JavaScript
Vendored
/* eslint-disable import/no-extraneous-dependencies */
|
|
// noinspection JSUnresolvedFunction
|
|
|
|
const mix = require('laravel-mix');
|
|
require('lmvh');
|
|
require('laravel-mix-serve');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Mix Asset Management
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Mix provides a clean, fluent API for defining some Webpack build steps
|
|
| for your Laravel applications. By default, we are compiling the CSS
|
|
| file for the application as well as bundling up all the JS files.
|
|
|
|
|
*/
|
|
mix.disableSuccessNotifications();
|
|
|
|
mix.js('resources/js/*.js', 'public/js')
|
|
.sass('resources/scss/app.scss', 'public/css', {
|
|
sassOptions: {
|
|
includePaths: ['./node_modules'],
|
|
},
|
|
});
|
|
|
|
if (mix.inProduction()) {
|
|
mix.versionHash();
|
|
} else {
|
|
// noinspection ChainedFunctionCallJS
|
|
mix.webpackConfig({
|
|
devtool: 'source-map',
|
|
resolve: {
|
|
modules: ['./node_modules'],
|
|
},
|
|
}).sourceMaps().serve().browserSync('localhost:8000');
|
|
}
|