Skip to content

Instantly share code, notes, and snippets.

@nissicreative
Last active September 19, 2016 16:37
Show Gist options
  • Select an option

  • Save nissicreative/594584cb27c5c0c693fb577db285bc9f to your computer and use it in GitHub Desktop.

Select an option

Save nissicreative/594584cb27c5c0c693fb577db285bc9f to your computer and use it in GitHub Desktop.
Laravel Elixir guplfile
const elixir = require('laravel-elixir');
elixir(function (mix) {
const bowerPath = './vendor/bower_components';
// Stylesheets
// -------------------------------------------------- //
// Compiles to public/css/app.css
mix.less('app.less', 'public/css', null, {
paths: [
bowerPath + '/bootstrap/less',
bowerPath + '/csstools/less'
]
});
// Compiles to public/css/admin.css
mix.less('admin.less', 'public/css', null, {
paths: [
bowerPath + '/bootstrap/less',
bowerPath + '/csstools/less',
bowerPath + '/eonasdan-bootstrap-datetimepicker/src/less'
]
});
/* Autoversion files */
// mix.version('css/app.css');
// mix.version('css/admin.css');
// Scripts
// -------------------------------------------------- //
// Compiles to public/js/main.js
mix.scripts([
'main.js'
], 'public/js/main.js');
// Compiles to public/js/admin.js
mix.scripts([
'ncs.js',
'admin.js'
], 'public/js/admin.js');
// Compiles to public/js/plugins.js
mix.scripts([
'ncs.js',
// bowerPath + '/jquery-cycle2/build/jquery.cycle2.js',
], 'public/js/plugins.js');
// Copied Assets
// -------------------------------------------------- //
mix.copy(bowerPath + '/fancyBox/source', 'public/plugins/fancybox');
mix.copy(bowerPath + '/moment/min/moment.min.js', 'public/js/vendor/moment.min.js');
mix.copy(bowerPath + '/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js', 'public/js/vendor/bootstrap-datetimepicker.min.js');
mix.copy(bowerPath + '/bootstrap/fonts', 'public/fonts');
// BrowserSync
// -------------------------------------------------- //
mix.browserSync({
proxy: 'mysite.dev'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment