changeset 1138:c8fb7b024faa

bake: Disable `uglifyjs` and `cleancss` by default. There's a good chance a new user doesn't have them installed.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 20 May 2018 22:20:00 -0700
parents 10fd55b9ccfb
children cd5267cd23ef
files piecrust/__init__.py piecrust/appconfigdefaults.py piecrust/pipelines/asset.py
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/__init__.py	Tue Apr 24 21:27:46 2018 -0700
+++ b/piecrust/__init__.py	Sun May 20 22:20:00 2018 -0700
@@ -19,7 +19,7 @@
 
 PIECRUST_URL = 'https://bolt80.com/piecrust/'
 
-CACHE_VERSION = 32
+CACHE_VERSION = 33
 
 try:
     from piecrust.__version__ import APP_VERSION
--- a/piecrust/appconfigdefaults.py	Tue Apr 24 21:27:46 2018 -0700
+++ b/piecrust/appconfigdefaults.py	Sun May 20 22:20:00 2018 -0700
@@ -40,6 +40,11 @@
         'cache_time': 28800,
         'enable_debug_info': True,
         'show_debug_info': False
+    }),
+    'pipelines': collections.OrderedDict({
+        'asset': collections.OrderedDict({
+            'processors': ['all', '-uglifyjs', '-cleancss']
+        })
     })
 })
 
--- a/piecrust/pipelines/asset.py	Tue Apr 24 21:27:46 2018 -0700
+++ b/piecrust/pipelines/asset.py	Sun May 20 22:20:00 2018 -0700
@@ -38,8 +38,8 @@
                 self.app.config.get('pipelines/asset/processors'),
                 self.source.config.get('processors')]:
             if flt is not None:
-                logger.debug("Filtering processors to: %s" % flt)
                 processors = get_filtered_processors(processors, flt)
+        logger.debug("Filtering processors to: %s" % processors)
 
         # Invoke pre-processors.
         proc_ctx = ProcessorContext(self)