2016-06-20 10 views
0

私のアプリケーションにhttps://github.com/puikinsh/gentelellaをインストールしました。資産をlaravel elixirにリンクする方法はありますか?ここlaravel 5 node_modules内のテンプレートを使ってエリキシルをコンパイルする方法

は私のテンプレートディレクトリです

Root 
|-app/ 
|-node_module/ 
| |-gentelella/ # -> this is my template 
|-gulpfile.js 
|-public/ 
// other laravel folders to follow. 

インサイド./gulpfile.js

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'); 
}); 
+0

あなたが現在* gulpfile.jsに何を持っていますか? – TheFallen

+0

はい私はルートフォルダの中にいて、gentelellaフォルダ内にgulpfile.jsもあります。 – loki9

+0

私はコードとして、あなたの投稿を編集し、* gulpfile.js *からJSを追加することを意味します。 – TheFallen

答えて

1

このお試しください:*

elixir(function(mix) { 
    mix.sass('app.scss'); 

    mix.styles([ 
     'node_modules/path/to/gentelella/css.css' 
    ], 'public/css/app.css', './'); 

    mix.version('public/css/app.css'); 
}); 
+0

それは何とか働いてくれてありがとう。 :) – loki9

関連する問題