Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. var elixir = require('laravel-elixir');
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Elixir Asset Management
  6. |--------------------------------------------------------------------------
  7. |
  8. | Elixir provides a clean, fluent API for defining some basic Gulp tasks
  9. | for your Laravel application. By default, we are compiling the Sass
  10. | file for our application, as well as publishing vendor resources.
  11. |
  12. */
  13.  
  14. elixir(function(mix) {
  15.  
  16. // Handle fonts
  17.  
  18.  
  19. /**
  20. * Front-end assets
  21. */
  22.  
  23. // Collect all SASS files from your dependencies and concat
  24. mix.sass([
  25. '../frontend/sass/app.scss'
  26. ], 'resources/assets/frontend/css');
  27.  
  28. // Collect all CSS files from your dependencies and concat
  29. mix.styles([
  30. '../bower_components/bootstrap/dist/css/bootstrap.min.css',
  31. '../frontend/css/app.css'
  32. ], 'public/css/app.css');
  33.  
  34. // Collect all JS files from your dependencies and concat
  35. mix.scripts([
  36. '../bower_components/jquery/dist/jquery.min.js',
  37. '../bower_components/bootstrap/dist/js/bootstrap.min.js',
  38. '../frontend/js/main.js'
  39. ], 'public/js/app.js');
  40.  
  41. /**
  42. * Back-end assets
  43. */
  44.  
  45. // Collect all SASS files from your dependencies and compile
  46. mix.sass([
  47. '../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss',
  48. '../backend/sass/app.scss'
  49. ], 'resources/assets/backend/css');
  50.  
  51. // Collect all CSS files from your dependencies and concat
  52. mix.styles([
  53. '../backend/css/app.css'
  54. ], 'public/css/backend.css');
  55.  
  56. // Collect all JS files from your dependencies and concat
  57. mix.scripts([
  58. '../bower_components/jquery/dist/jquery.js',
  59. '../bower_components/bootstrap-sass/assets/javascripts/bootstrap.js',
  60. '../backend/js/main.js'
  61. ], 'public/js/backend.js');
  62.  
  63. // Enable asset versioning
  64. mix.version(['css/app.css', 'js/app.js', 'css/backend.css', 'js/backend.js']);
  65. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement