У меня есть довольно простой код для выполнения Gulp, но он по-прежнему не дает никаких эффектов. Он заканчивается без каких-либо ошибок, на самом деле не так много кода, чтобы изменить, и я застрял. Linux Mint x64, узел v4.2.6, Gulp CLI & Местный 3.9.1.
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) {
mix.sass('app.scss')
.styles([
'libs/blog-post.css',
'libs/bootstrap.css',
'libs/font-awesome.css',
'libs/metisMenu.css',
'libs/sb-admin-2.css',
'libs/styles.css'
], '/public/css/libs.css')
.scripts([
'libs/bootstrap.js',
'libs/jquery.js',
'libs/metisMenu.js',
'libs/sb-admin-2.js',
'libs/scripts.js'
], '/public/js/libs.js');
});[02:51:41] Using gulpfile /opt/lampp/htdocs/laravel-application/gulpfile.js
[02:51:41] Starting 'default'...
[02:51:41] Starting 'sass'...
Fetching Sass Source Files...
- resources/assets/sass/app.scssSaving To...
- public/css/app.css
[02:51:44] Finished 'default' after 2.65 s
[02:51:44] gulp-notify: [Laravel Elixir] Sass Compiled!
[02:51:44] Finished 'sass' after 2.83 s
[02:51:44] Starting 'styles'...
Fetching Styles Source Files...
- resources/assets/css/libs/blog-post.css
- resources/assets/css/libs/bootstrap.css
- resources/assets/css/libs/font-awesome.css
- resources/assets/css/libs/metisMenu.css
- resources/assets/css/libs/sb-admin-2.css
- resources/assets/css/libs/styles.cssSaving To...
- /public/css/libs.css
[02:51:44] gulp-notify: [Laravel Elixir] Stylesheets Merged!
[02:51:44] Finished 'styles' after 140 ms
[02:51:44] Starting 'scripts'...
Fetching Scripts Source Files...
- resources/assets/js/libs/bootstrap.js
- resources/assets/js/libs/jquery.js
- resources/assets/js/libs/metisMenu.js
- resources/assets/js/libs/sb-admin-2.js
- resources/assets/js/libs/scripts.jsSaving To...
- /public/js/libs.js
[02:51:45] gulp-notify: [Laravel Elixir] Scripts Merged!
[02:51:45] Finished 'scripts' after 581 ms
Задача ещё не решена.
Других решений пока нет …