grunt-rollup
Advanced tools
Comparing version 0.2.2 to 0.3.0
{ | ||
"name": "grunt-rollup", | ||
"description": "Grunt plugin for rollup - next-generation ES6 module bundler", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"homepage": "https://github.com/chrisprice/grunt-rollup", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -48,2 +48,4 @@ # grunt-rollup | ||
To get relative paths, set `sourceMapRelativePaths` to `true`. This sets rollup `sourceMapFile` property, making the sourcemap relative to the output file. | ||
### Usage Examples | ||
@@ -50,0 +52,0 @@ |
@@ -33,3 +33,4 @@ /* | ||
sourceMap: false, | ||
sourceMapFile: null | ||
sourceMapFile: null, | ||
sourceMapRelativePaths: false | ||
}); | ||
@@ -57,2 +58,8 @@ | ||
}).then(function(bundle) { | ||
var sourceMapFile = options.sourceMapFile; | ||
if (!sourceMapFile && options.sourceMapRelativePaths) { | ||
sourceMapFile = path.resolve(f.dest); | ||
} | ||
var result = bundle.generate({ | ||
@@ -69,3 +76,3 @@ format: options.format, | ||
sourceMap: options.sourceMap, | ||
sourceMapFile: options.sourceMapFile | ||
sourceMapFile: sourceMapFile | ||
}); | ||
@@ -72,0 +79,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7075
81
72