jayin

6274 经验值

@JellyBool
No gulpfile.js in Laravel 5.4
PUBLISHED 4 MONTHS AGO BY HUMZA95
Sorry for being stupid , but i started laravel few days ago and i was watching basic tutorial and i found out that there is no more gulpfile in project. So how do i compile the SASS stuff.
bobbybouwmann
bobbybouwmann
4 months ago
(857,395 XP)
Laravel is using Laravel Mix now! So basically you have a webpack file now. Take a look at the documentation and some videos:

Documentation: https://laravel.com/docs/5.4/mix
Video: https://laracasts.com/series/whats-new-in-laravel-5-4/episodes/3

@JellyBool 我用npm install gulp -g 下载了gulp
运行gulp
结果

\zhihu-app>gulp
[13:52:50] No gulpfile found
use Illuminate\Http\Request;

class LoginController extends Controller
{


    use AuthenticatesUsers;
}

use 的位置放的位置不一样没什么区别把?

我在homestead虚拟机里面npm install一值这样:

[email protected]:~/Code/zhihu-app$ npm install
[      ............] \ fetchMetadata: sill mapToRegistry uri https://registry.np[      ............] | fetchMetadata: sill mapToRegistry uri https://registry.np[      ............] | fetchMetadata: sill mapToRegistry uri https://registry.np[      ............] / fetchMetadata: sill mapToRegistry uri https://registry.np[      ............] / fetchMetadata: sill mapToRegistry uri https://registry.np[      ............] / fetchMetadata: sill mapToRegistry uri https://registry.np