Skip to content

Commit

Permalink
use relative filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Rudolph committed Jan 7, 2016
1 parent 926060a commit 5e1ba31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions corehq/apps/style/uglify.py
Expand Up @@ -25,14 +25,15 @@ def output(self, **kwargs):
infiles = []
for infile in kwargs['content_meta']:
# type, full_filename, relative_filename
infiles.append(infile[1])
infiles.append(infile[2])

options['infiles'] = ' '.join(f for f in infiles)

options['mapfile'] = kwargs['outfile'].replace('.js', '.map.js')

options['mapurl'] = '{}{}'.format(
settings.STATIC_URL, options['mapfile'])
settings.STATIC_URL, options['mapfile']
)

options['maproot'] = settings.STATIC_URL

Expand Down

0 comments on commit 5e1ba31

Please sign in to comment.