summaryrefslogtreecommitdiff
path: root/compressor/js.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove outdated codetufedtm2021-04-131-1/+1
|
* Update flake8 to be compatible with newer versions of python (#968)Albert Wang2019-12-141-4/+4
| | | | * Update flake8 to be compatible with newer versions of python
* Insert ';' after each js file instead of before to fix strict modeVojtech Bocek2019-08-051-1/+1
|
* Abstract away resource types to allow the implementation of new types. (#900)Alexander van Ratingen2018-04-021-5/+2
| | | | | | | | | | | | | | * Abstract away resource types to allow the implementation of new types. * Fix failing test on Python 2. * Process review comments * Remove old COMPRESS_FILTER_CSS/JS settings from configuration after converting them into the new COMPRESS_FILTERS[css/js] form. * Document new COMPRESS_FILTERS setting. * Update mention in documentation of old filter setting to new form.
* Insert semicolon between JS files, fixes a JS syntax error when certain ↵Patrick Michaud2017-01-031-0/+17
| | | | | | | | | | | | | | | | | | | | | files are combined (#813) compressor will turn files that look like File1.js: (function($) { console.log("run"); })(window) File2.js: (function($) { console.log("run 2"); })(window) Into: (function($) { console.log("run"); })(window) (function($) { console.log("run 2"); })(window) which will give an error like "Uncaught TypeError: (intermediate value)(...) is not a function" This commit changes that output to: (function($) { console.log("run"); })(window);(function($) { console.log("run 2"); })(window)
* Minor refactoring in Compressor's constructorJohannes Linke2015-09-231-3/+2
|
* Fixed typo in last merge.Jannis Leidel2014-12-301-1/+1
|
* Merge remote-tracking branch 'GermanoGuerrini/develop' into developJannis Leidel2014-12-301-3/+31
|\ | | | | | | Fix #132.
| * Support for async/deferGermanoGuerrini2014-05-261-3/+29
|/ | | | Now javascripts are compressed preserving async or defer.
* Various PEP8 and pyflakes related fixes.Jannis Leidel2012-05-191-1/+0
|
* Stop hardcoding the template names and provide an API for returning custom ↵Jannis Leidel2012-01-301-2/+0
| | | | paths. Fixed #167.
* Import settings from compressor.conf again instead of django.conf to make ↵Jannis Leidel2011-09-061-2/+1
| | | | sure they are loaded correctly.
* Use the current context when rendering the output templates.Jannis Leidel2011-08-261-2/+2
|
* Moved settings handling over to django-appconf and fixed coverage.Jannis Leidel2011-08-251-1/+2
|
* Moved tests out of the app to stay sane and changed a few things. E.g. the ↵Jannis Leidel2011-08-101-9/+5
| | | | inclusion of JavaScript files now happens without charset (as they are deprecated in HTML5).
* Removed a few unneeded imports.Jannis Leidel2011-05-181-2/+0
|
* Use constants for hunk comparison.Jannis Leidel2011-05-131-3/+3
|
* Fix converting relative URLs in CSS files when DEBUG=TrueMike Yumatov2011-05-061-2/+6
|
* Applied a few PEP8 style modifications.Jannis Leidel2011-03-301-3/+4
|
* Made it possible to create a compressor instance without providing content.Jannis Leidel2011-02-161-2/+2
|
* Be a bit DRYer for the file extension attribute of the compressors.Jannis Leidel2011-02-161-1/+0
|
* Adopted AppSettings and moved a few things from utils to the cache module ↵Jannis Leidel2011-02-091-4/+2
| | | | where they belong.
* Renamed the internal settings to be less confusing (potentially backwards ↵Jannis Leidel2011-02-041-1/+1
| | | | incompatible for users that imported those directly) and added quite some checks to be a little more helpful when setting up compressor together with staticfiles (whether contrib's staticfiles or the external app).
* Removed a few API-only imports from the main module.Jannis Leidel2011-01-201-1/+3
|
* Fixed order of instantiation of the CSSCompressor class. Thanks, emirotin.Jannis Leidel2011-01-131-1/+1
|
* Refactored the compressor code a little (split in separate modules). Also ↵Jannis Leidel2010-06-071-0/+30
abstracted the file parsing and added a BeautifulSoupParser and a LxmlParser, while the former is the default.