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/timentessagaantrouwen.nl/webpack.mix.js
const mix = require('laravel-mix');

let sassDir = 'resources/sass/';
let imgDir = 'resources/img';
let jsDir = 'resources/js/';

//We need to define this because 'mix.copy' and 'mix.script' won't listen to the setPublicPath
let publicDir = 'wwwroot/';

/*
 |--------------------------------------------------------------------------
 | 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.
 |
 */

//Sass will use this as public path
mix.setPublicPath(publicDir);
mix.browserSync({
    proxy: 'localhost:8000',
    port: 8001,
    files: [
        'wwwroot/css/**/*',
        'resources/views/**/*',
        'resources/lang/**/*',
    ]
});

mix.webpackConfig({ devtool: "inline-source-map" });

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

mix.disableSuccessNotifications();

mix.copy(imgDir, publicDir + 'img');

mix.sass(sassDir + 'style.scss', 'css/style.css')
    .version();

mix.js(jsDir + 'app.js', publicDir + 'js/app.js')
    .version();