GCTC-NTGC /
TalentCloud
| 1 | const { mix } = require('laravel-mix'); |
||
|
0 ignored issues
–
show
Backwards Compatibility
introduced
by
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 |