webpack.mix.js 459 B

1234567891011121314151617
  1. let mix = require('laravel-mix');
  2. require('mix-tailwindcss');
  3. const extension = mix.inProduction() ? '.min' : '';
  4. mix.js('js/main.js', `js/main${extension}.js`)
  5. .css('css/site.css', `css/site${extension}.css`)
  6. .tailwind()
  7. .setPublicPath('dist')
  8. .version()
  9. // .browserSync({
  10. // proxy: 'http://domain.test',
  11. // files: [
  12. // './dist/mix-manifest.json',
  13. // '../../pages/**/*.md'
  14. // ]
  15. // })