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();