Skip to content

Commit

Permalink
Merge pull request #121 from dbow/master
Browse files Browse the repository at this point in the history
Restore outputRelativePath functionality
  • Loading branch information
zont committed Aug 26, 2015
2 parents f52d609 + dcce4fb commit 70e659d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/blocksBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = function(file, options) {

var basePath = file.base;
var mainPath = path.dirname(file.path);
var outputPath = options.outputRelativePath || '';
var content = String(file.contents);
var sections = content.split(endReg);
var blocks = [];
Expand Down Expand Up @@ -84,15 +85,15 @@ module.exports = function(file, options) {
blocks.push({
type: section[1].indexOf('inline') !== -1 ? 'inlinejs' : 'js',
nameInHTML: section[3],
name: section[4],
name: outputPath + section[4],
files: getFiles(section[5], jsReg, section[2]),
tasks: options[section[1]]
});
} else {
blocks.push({
type: section[1].indexOf('inline') !== -1 ? 'inlinecss' : 'css',
nameInHTML: section[3],
name: section[4],
name: outputPath + section[4],
files: getFiles(section[5], cssReg, section[2]),
tasks: options[section[1]],
mediaQuery: cssMediaQuery
Expand Down

0 comments on commit 70e659d

Please sign in to comment.