Taklit alternatifi yerine node-sass
ile çalışmak için yardımcı bir sass filtresi almam konusunda bazı zorluklar yaşıyorum. Benim config.yml
dosyasında aşağıdaki yapılandırmaya sahip: bu hak node-sass
komutu tetikler rağmenDüğüm-sass üzerinden Symfony assetik sass filtresi?
assetic:
debug: "%kernel.debug%"
use_controller: false
bundles: [ ]
write-to: "%kernel.root_dir%/../web/assets"
read_from: "%kernel.root_dir%/../web/assets"
node: "%%PROGRAMFILES%%\nodejs\\node.exe"
node_paths: ["%%USERPROFILE%%\\AppData\\Roaming\\npm\\node_modules"]
sass: "%%USERPROFILE%%\\AppData\\Roaming\\npm\\node-sass"
ruby: null
filters:
cssrewrite: ~
scss:
output-style: compressed
apply_to: "\.(scss|sass|css)%"
, ben yapılandırmasının doğru olduğundan emin değilim. ruby: null
'u kaldırırsam, tamamen yanlış olan C:\Program Files...\path\to\ruby.exe %%USERPROFILE%%\\AppData\\Roaming\\npm\\node-sass
'u çalıştırmayı dener. Ancak, ruby: null
olması sorunu da çözmüyor, çünkü yanlış argümanları (yani yerine --load-path
) ayarlıyor ve bu da işleri karıştırıyor.
yerine sass
filtresini node
ile nasıl ayarlayacağını bilen var mı?
İyi iş. Bu yardımcı depoya gitmeli, ayrıca varlıklarını çoğunlukla düğüm olmadan da düğüm yoluyla yönetiyorum. – gremo
Bunu en son sürümlerde henüz düzeltmediklerini ve bu durumda biraz zamanım olduğunda bir PR yapıp yapmadıklarını kontrol edeceğim. :) – tftd
Yine de teşekkürler - Ben sass filtreleri ruby ile kullanılmak üzere kastedilen nihayet gerçekleştirmek için yük yolu (ruby sass) vs load-imports (node-sass) ... ile birkaç saat karıştırarak geçirdim :) – gremo