grunt-include-source
Advanced tools
Comparing version
{ | ||
"name": "grunt-include-source", | ||
"description": "Include your sources into your HTML files automatically.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "https://github.com/jwvdiermen/grunt-include-source", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -13,2 +13,3 @@ /* | ||
var path = require('path'); | ||
var url = require('url'); | ||
var os = require('os'); | ||
@@ -172,3 +173,3 @@ var util = require('util'); | ||
grunt.log.debug('Including file "' + file + '".'); | ||
includeFragments.push(typeTemplates[include.options.type].replace('{filePath}', path.join(include.options.baseUrl || options.baseUrl, file))); | ||
includeFragments.push(typeTemplates[include.options.type].replace('{filePath}', url.resolve(include.options.baseUrl || options.baseUrl, file))); | ||
}); | ||
@@ -175,0 +176,0 @@ |
15373
0.2%218
0.46%