Comments (7)
With the change I proposed in #30 that would be easy to do.
Splitting the process into the follow steps will allow for that find grained control:
- Precompilers
- Combiner
- Compressor
Each step depends on the previous one, so you can for example always run precompilers, only do combining on the testing environment and do full compression on production.
from django-compressor.
I proposed a separate process tag here: #17
@jezdez replied he implemented it in some different way, but I don't see this possibility mentioned in docs
from django-compressor.
@emirotin See http://django_compressor.readthedocs.org/en/latest/settings/#compress-precompilers
from django-compressor.
@jezdez do they work when compression is OFF?
from django-compressor.
Yup.
from django-compressor.
Oh, that's great, but then docs need fixing - currently it says
If the COMPRESS_ENABLED setting is False (defaults to the opposite of DEBUG) the compress template tag does nothing and simply returns exactly what it was given.
I think it needs a bold disclaimer saying that files matched with precompilers are always processed.
from django-compressor.
FWIW, I think introducing a way to pass COMPRESS_DEBUG_TOGGLE
a callable is the way to go here.
from django-compressor.
Related Issues (20)
- Django's `get_storage_class` is deprecated in 4.2 (Django 5.1 compat.) HOT 5
- Releasing a new version with Django 4.2 support HOT 3
- No way to specify hashing method for JS files? HOT 1
- Disable offline compression for some scripts HOT 5
- Fix tests with Python 3.9.17, 3.10.12 and 3.11.4 HOT 7
- Dependencies are pinned HOT 1
- Dynamic SCRIPT_NAME and compressed assets HOT 8
- Getting more info when `Error parsing template` happens
- Not compatible with django-components HOT 10
- Issue with losing templates in compress command in version >=3.0.
- optional max_workers for compress command HOT 1
- 'Settings' object has no attribute 'COMPRESSORS' HOT 8
- OSSFuzz Integration HOT 4
- 4.4: compressor.exceptions.OfflineGenerationError raised in tests HOT 4
- Django 5.1 compatibility HOT 1
- Offline compression + inlining bug HOT 3
- Compress command: warn or error about context vars?
- Set compressor_file_storage to CompressorFileStorage HOT 13
- Documentation isn't clear / confusing behavior
- Getting an "invalid template" error for template in a library that I do not use HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-compressor.