Skip to content

Commit

Permalink
Fixing bug in JS/CSS compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ehough committed Jan 6, 2016
1 parent b458923 commit 4c5d505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/php/classes/tubepress/build/job/mods/CompressTask.php
Expand Up @@ -35,7 +35,8 @@ public function run()
foreach ($this->_relativePaths as $relativePath) {

$source = sprintf('%s/%s', $stagingDir, $relativePath);
$dest = str_replace('.', '-dev.', $source);
$dest = str_replace('.css', '-dev.css', $source);
$dest = str_replace('.js', '-dev.js', $dest);

$fs->copy($source, $dest);

Expand Down

0 comments on commit 4c5d505

Please sign in to comment.