Skip to content

Commit

Permalink
Fixed an import error
Browse files Browse the repository at this point in the history
  • Loading branch information
khoobks-gaiaresources committed Apr 4, 2016
1 parent 13e113c commit c899fda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requirejs/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from .finder import ModuleFinder
from .utils import get_installed_app_labels, get_app_template_dirs
from .js import JsCompressor


define_replace_pattern = re.compile(r'define\s*\(([^\)]*?)\)')

Expand Down Expand Up @@ -119,6 +119,7 @@ def write_output(content, basename):
Leverage django-compressor's JsCompressor to write the Javascript, making use of configured filters
and other settings.
"""
from .js import JsCompressor
# Compress it
compressor = JsCompressor()
filtered = compressor.filter(content, compressor.cached_filters, method='input', kind='js')
Expand Down

0 comments on commit c899fda

Please sign in to comment.