1. Randall Leeds
  2. fanstatic


Jan-Jaap Driessen  committed 74f4c9c

Refactor initialization, mode_clone has more responsability now.

  • Participants
  • Parent commits c9afa5c
  • Branches compilers-n-minifiers2

Comments (0)

Files changed (1)

File fanstatic/core.py

View file
  • Ignore whitespace
         self.minifier = minifier or self.library.minifiers.get(self.ext)
         if self._mode == MINIFIED:
-            if self.compiler:
-                if self.compiler.minified:
-                    pass
-            elif self.minifier is not None:
+            if self.compiler is None and self.minifier is not None:
                 # Raise a configuration error if both minifier and minified are defined. 
                 if minified is not None:
                     raise ConfigurationError('Cannot set minified and minifier for a Resource.')