Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var elixir = require('laravel-elixir');
- /*
- |--------------------------------------------------------------------------
- | Elixir Asset Management
- |--------------------------------------------------------------------------
- |
- | Elixir provides a clean, fluent API for defining some basic Gulp tasks
- | for your Laravel application. By default, we are compiling the Sass
- | file for our application, as well as publishing vendor resources.
- |
- */
- elixir(function(mix) {
- // Handle fonts
- /**
- * Front-end assets
- */
- // Collect all SASS files from your dependencies and concat
- mix.sass([
- '../frontend/sass/app.scss'
- ], 'resources/assets/frontend/css');
- // Collect all CSS files from your dependencies and concat
- mix.styles([
- '../bower_components/bootstrap/dist/css/bootstrap.min.css',
- '../frontend/css/app.css'
- ], 'public/css/app.css');
- // Collect all JS files from your dependencies and concat
- mix.scripts([
- '../bower_components/jquery/dist/jquery.min.js',
- '../bower_components/bootstrap/dist/js/bootstrap.min.js',
- '../frontend/js/main.js'
- ], 'public/js/app.js');
- /**
- * Back-end assets
- */
- // Collect all SASS files from your dependencies and compile
- mix.sass([
- '../bower_components/bootstrap-sass/assets/stylesheets/_bootstrap.scss',
- '../backend/sass/app.scss'
- ], 'resources/assets/backend/css');
- // Collect all CSS files from your dependencies and concat
- mix.styles([
- '../backend/css/app.css'
- ], 'public/css/backend.css');
- // Collect all JS files from your dependencies and concat
- mix.scripts([
- '../bower_components/jquery/dist/jquery.js',
- '../bower_components/bootstrap-sass/assets/javascripts/bootstrap.js',
- '../backend/js/main.js'
- ], 'public/js/backend.js');
- // Enable asset versioning
- mix.version(['css/app.css', 'js/app.js', 'css/backend.css', 'js/backend.js']);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement