12345678910111213141516171819202122232425
  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 applications. By default, we are compiling the CSS
  9. | file for the application as well as bundling up all the JS files.
  10. |
  11. */
  12. mix
  13. .js('resources/js/vue.js', 'public/js')
  14. .sass('resources/sass/app.scss', 'public/css')
  15. .webpackConfig(require('./webpack.config'))
  16. .vue()
  17. .browserSync('http://dev.test/')
  18. .disableNotifications()
  19. if (mix.inProduction()) {
  20. mix.version()
  21. }