Sha256: 5cd883da6dbf59c0f9400904dde7f9fb4a6e0cd76de26addc18f861e7d3090c3
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
require 'yui/compressor' Pakyow::Assets.preprocessor :js, fingerprint: true, fingerprint_contents: true do |path| content = File.read(path) if Pakyow::Config.assets.minify begin YUI::JavaScriptCompressor.new(munge: true).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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pakyow-assets-0.1.2 | lib/preprocessors/javascript-preprocessor.rb |