./lib/lux_assets/element.rb in lux_assets-0.2.1 vs ./lib/lux_assets/element.rb in lux_assets-0.2.2

- old
+ new

@@ -25,11 +25,11 @@ private def production? # if building from Rake then we are compiling for production - ENV['LUX_ASSETS_ENV'] == 'production' || defined?(Rake) + defined?(Rake) || $0.include?('/lux_assets') end def cached @cache.exist? && (@cache.ctime > @source.ctime) ? @cache.read : false end @@ -53,9 +53,10 @@ node_opts = production? ? '--output-style compressed' : '--source-comments' LuxAssets.run "#{node_sass} #{node_opts} '#{@source}' '#{@cache}'", @cache @cache.read end alias :compile_sass :compile_scss + alias :compile_css :compile_sass def compile_js ";\n%s\n;" % @source.read end \ No newline at end of file