Skip to content

Commit

Permalink
Update BrowserifyCompiler for n Pipeline settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mythmon committed Feb 25, 2016
1 parent 6650c53 commit cedac36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kitsune/lib/pipeline_compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ def match_file(self, path):
return re.search(r'\.browserify(\.[a-fA-F0-9]+)?\.js$', path) is not None

def compile_file(self, infile, outfile, outdated=False, force=False):
pipeline_settings = getattr(settings, 'PIPELINE', {})
command = "%s %s %s > %s" % (
getattr(settings, 'PIPELINE_BROWSERIFY_BINARY', '/usr/bin/env browserify'),
getattr(settings, 'PIPELINE_BROWSERIFY_ARGUMENTS', ''),
pipeline_settings.get('BROWSERIFY_BINARY', '/usr/bin/env browserify'),
pipeline_settings.get('BROWSERIFY_ARGUMENTS', ''),
infile,
outfile
)
Expand Down

0 comments on commit cedac36

Please sign in to comment.