mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
always compile files which could include other files (css & js)
This commit is contained in:
parent
47997fbe15
commit
23864d43d7
2 changed files with 3 additions and 2 deletions
|
@ -21,7 +21,8 @@ class Templater::Actions::Template
|
|||
|
||||
def identical?
|
||||
if File.exists?(destination)
|
||||
return true if File.exists?(source) && File.mtime(source) < File.mtime(destination)
|
||||
extension = File.extname(destination)
|
||||
return true if !%w(.css .js).include?(extension) && File.exists?(source) && File.mtime(source) < File.mtime(destination)
|
||||
File.read(destination) == render
|
||||
else
|
||||
false
|
||||
|
|
|
@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|||
|
||||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
||||
s.authors = ["Thomas Reynolds"]
|
||||
s.date = %q{2009-10-09}
|
||||
s.date = %q{2009-10-12}
|
||||
s.email = %q{tdreyno@gmail.com}
|
||||
s.executables = ["mm-init", "mm-build", "mm-server"]
|
||||
s.extra_rdoc_files = [
|
||||
|
|
Loading…
Reference in a new issue