A
A
Alexander Krays2019-01-30 06:31:18
webpack
Alexander Krays, 2019-01-30 06:31:18

Why does laravel.mix take a long time to compile scss files?

Good day to all. I recently switched to webpack, then due to the need I switched to laravel.mix and ran into a problem:
5c511349575c5044339658.jpeg
With my scss config, files are compiled in 10-15 seconds. Which is very strange. How to solve this difficulty?
my webpack.mix.js:

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

mix.autoload({
  jquery: ['$', 'window.jQuery']
});
mix.setPublicPath('./')
    .sass('src/scss/main.scss', 'dist/css')
    .options({
      processCssUrls: false
    })
    .sourceMaps()
    .js('src/js/main.js', 'dist/js')
    .extract(['bootstrap', 'popper.js', 'jquery' ]);

mix.browserSync({
  proxy: 'laravel.mix.li-lit'
});

if (mix.inProduction()) {
  mix.version();
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
imlegend, 2019-06-06
@imlegend

mix.options({ processCssUrls: false });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question