Passed
Push — gb_postgres ( d68f6e...59f4fb )
by Grant
11:09
created

webpack.mix.js (2 issues)

1
const { mix } = require('laravel-mix');
0 ignored issues
show
Backwards Compatibility introduced by
'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
Backwards Compatibility introduced by
'destructuring binding' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).
Loading history...
2
3
/*
4
 |--------------------------------------------------------------------------
5
 | Mix Asset Management
6
 |--------------------------------------------------------------------------
7
 |
8
 | Mix provides a clean, fluent API for defining some Webpack build steps
9
 | for your Laravel application. By default, we are compiling the Sass
10
 | file for the application as well as bundling up all the JS files.
11
 |
12
 */
13
14
mix.js('resources/assets/js/app.js', 'public/js')
15
   .sass('resources/assets/sass/app.scss', 'public/css')
16
   .options({
17
        postCss: [
18
            require('cssnano')({
19
                preset: ['default', {
20
                    discardComments: {
21
                        removeAll: true,
22
                    },
23
                }]
24
            }),
25
            require('autoprefixer')({
26
                browsers: '>0.1%'
27
            }),
28
        ]
29
   });
30