Sha256: d560996a11ff8c6420ac87f01910478502f3413f412c88703ace2eed1a85fcd0
Contents?: true
Size: 600 Bytes
Versions: 2
Compression:
Stored size: 600 Bytes
Contents
require 'sass' require 'yui/compressor' Pakyow::Assets.preprocessor :scss, :sass, output: :css, fingerprint_contents: true do |path| content = Sass::Engine.for_file(path, {}).render if Pakyow::Config.assets.minify begin YUI::CssCompressor.new.compress(content) rescue YUI::Compressor::RuntimeError Pakyow.logger.warn "Unable to minify #{path}; using raw content" content end else content end end Pakyow::Assets.dependencies :scss, :sass do |path| Sass::Engine.for_file(path, {}).dependencies.map { |dependency| dependency.options[:filename] } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pakyow-assets-0.1.1 | lib/preprocessors/sass-preprocessor.rb |
pakyow-assets-0.1.0 | lib/preprocessors/sass-preprocessor.rb |