Sha256: 4b40039d97d0caf23d1ae50d0a2d823948dd0371c3fdee0e416ef424a5750368
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
require 'yui/compressor' Pakyow::Assets.preprocessor :css, fingerprint_contents: true do |path| content = File.open(path).read 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pakyow-assets-0.1.1 | lib/preprocessors/css-preprocessor.rb |
pakyow-assets-0.1.0 | lib/preprocessors/css-preprocessor.rb |