2016-09-30 13 views
1

新しいLaravelプロジェクトを作成すると、gulp watchが非常に完璧に機能しました。今私はPyroCMSプロジェクトに取り組んでいます。これはLaravelも使用されています。どうしてか分かりません。 複数のSassファイルを同時に見るのに問題があるようです。それはまったく見ない。しかし、1つのSassファイルでは、完全に動作します。ここ は私のコードです:Laravel Elixirの時計が正しく動作しない

var sassPath = './addons/dscms/anomaly/generali-theme/resources/sass/', 
    cssPath  = './addons/dscms/anomaly/generali-theme/resources/css/', 
    jsPath  = './addons/dscms/anomaly/generali-theme/resources/js/', 
    jsCopyPath  = './addons/dscms/anomaly/generali-theme/resources/js/my-js/'; 

elixir(mix => { 
mix 
.sass([ 
    ''+sassPath+'main-style.sass', 
    ''+sassPath+'section1.sass', 
    ''+sassPath+'section2.sass' 
    ], ''+cssPath+'main.css') 
.scripts([ 
    ''+jsPath+'main.js', 
    ''+jsPath+'main-2.js', 
    ''+jsPath+'main-3.js' 
],''+jsCopyPath+'main.js'); 
}); 

また、複数のjsファイルではなく、SASSファイルを扱います。これで私を助けてください。どうもありがとうございました!

答えて

0

申し訳ありません。それは完全に私のせいでした:)構文は少し間違っていました。正しいコードは次のようなものです

mix 
.sass(''+sassPath+'*.*', ''+cssPath+'main.css') 

私はそれをテストしました。それは複数のファイルを見て、1つのファイルに連結しました。完璧に働いた!

関連する問題