Sha256: 05d8eef2d0f56027f749e127dc63d8cf0fe7eae08077ba8dbd6c391374cb0a17
Contents?: true
Size: 335 Bytes
Versions: 3
Compression:
Stored size: 335 Bytes
Contents
require "uglifier" require "cssminify" module Linner class Compressor def self.compress(asset) if Template.template_for_script? asset.path Uglifier.compile asset.content, comments: "none" elsif Template.template_for_style? asset.path CSSminify.new.compress asset.content end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
linner-0.2.0 | lib/linner/compressor.rb |
linner-0.1.5 | lib/linner/compressor.rb |
linner-0.1.4 | lib/linner/compressor.rb |