You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
658 B

3 years ago
  1. const mix = require('laravel-mix')
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Mix Asset Management
  5. |--------------------------------------------------------------------------
  6. |
  7. | Mix provides a clean, fluent API for defining some Webpack build steps
  8. | for your Laravel application. By default, we are compiling the Sass
  9. | file for the application as well as bundling up all the JS files.
  10. |
  11. */
  12. mix.options({
  13. terser: {
  14. extractComments: false
  15. }
  16. })
  17. mix
  18. .js('resources/js/index.js', 'public/js')
  19. .js('resources/js/critical.js', 'public/js')
  20. .sass('resources/scss/index.scss', 'public/css')