HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/ste.komma.pro/webpack.mix.js
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 the application as well as bundling up all the JS files.
 |
 */

// require('laravel-mix-bundle-analyzer');
// mix.bundleAnalyzer();

mix.browserSync({
    proxy: 'localhost:8000',
    port: 8001,
    files: [
        'wwwroot/css/**/*',
        'resources/views/**/*',
        'resources/lang/**/*',
        'resources/js/**/*',
        'resources/img/**/*',
    ]
});

mix.options({
    publicPath: 'wwwroot',
    processCssUrls: false,
    postCss: [
        require('autoprefixer')({
            grid: true,
        }),
    ]
});

if (!mix.inProduction()) {
    mix.options({
        webpackConfig: {
            devtool: "inline-source-map"
        },
        notifications: {
            onSuccess: false
        }
    });
}

mix.copy('resources/img', 'wwwroot/img');

mix.sass('resources/sass/style.scss', 'css/style.css')
    .js('resources/js/app.js', 'js/app.js')
    .extract(['hammerjs', 'objectFitPolyfill', 'body-scroll-lock', 'vue'])
    .version();