webpack.mix.js 681 B

1234567891011121314151617181920
  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.autoload({
  13. jquery: ['$', 'jQuery', 'window.jQuery']
  14. });
  15. mix.js('resources/js/home/home.js', 'public/js')
  16. .sass('resources/sass/home/home.scss', 'public/css')
  17. .copyDirectory('resources/images/home', 'public/images/home');