Add touch events
This commit is contained in:
+5
-1
@@ -1,7 +1,11 @@
|
||||
#!/usr/bin/env ruby
|
||||
extensions = %w[jpg jpeg png js css gif svg json woff eot ttf otf ]
|
||||
start_time = Time.now
|
||||
Dir.glob(File.join('public/assets/**', "*.{#{extensions.join(',')}}")).each do |asset_path|
|
||||
next unless asset_path =~ /-[a-f0-9]{32}\.(#{extensions.join('|')})\Z/
|
||||
dedigest_path = asset_path.sub(/-[a-f0-9]{32}/, '')
|
||||
`mv '#{asset_path}' '#{dedigest_path}' 2>/dev/null`
|
||||
#`mv '#{asset_path}' '#{dedigest_path}' 2>/dev/null`
|
||||
`mv '#{asset_path}' '#{dedigest_path}'`
|
||||
end
|
||||
end_time = Time.now
|
||||
puts "Dedigested assets in #{(end_time - start_time).round} seconds}"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/usr/bin/env ruby
|
||||
start_time = Time.now
|
||||
require 'active_support/all'
|
||||
require 'uglifier'
|
||||
require 'fileutils'
|
||||
@@ -42,4 +43,7 @@ remove 'user/app/application.js' # embedded in flat/application
|
||||
gsub_file 'user/foundation/application.css', /url\(("?)\/assets/, 'url(\1../..'
|
||||
gsub_all_scripts 'src="/assets', 'src="./assets'
|
||||
|
||||
compress_js 'user/flat/application.js'
|
||||
#compress_js 'user/flat/application.js'
|
||||
|
||||
end_time = Time.now
|
||||
puts "Converted assets for mobile in #{(end_time - start_time).round} seconds"
|
||||
|
||||
Reference in New Issue
Block a user