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/beerten.komma.nl/webpack.mix.js
/*
 |--------------------------------------------------------------------------
 | 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.
 |
 */

let mix = require('laravel-mix');
require('laravel-mix-bundle-analyzer');

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

mix.options({
    publicPath: 'wwwroot',
    processCssUrls: false,
    postCss: [
        require('autoprefixer')({
            grid: true,
            overrideBrowserslist: [
                '> 2%',
                'ie 11'
            ]
        }),
    ],
    notifications: {
        onSuccess: false
    }
});

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

mix.sass('resources/sass/style.scss', 'css/style.css')
    .sourceMaps(false, 'inline-source-map')
    .version();

mix.js('resources/js/app.js', 'js/app.js')
    .sourceMaps(false, 'inline-source-map')
    .version()
    .extract(['hammerjs', 'objectFitPolyfill', 'body-scroll-lock']);

if(!mix.inProduction()) {
    if (mix.isWatching()) {
        mix.bundleAnalyzer({
            openAnalyzer: true,
            analyzerPort: 8888
        });
    }
}