Skip to content

Commit

Permalink
fix: don't add source map
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Feb 23, 2019
1 parent 7b0e953 commit d314a1c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/LinariaAsset.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ class LinariaAsset extends JSAsset {

this.addDependency(resolved, { includedInParent: true });
} catch (e) {
console.warn(
`Failed to add dependency '${dep}' for ${this.name}`,
e
);
console.warn(`Failed to add dependency '${dep}' for ${this.name}`, e);
}
});
}
Expand All @@ -53,12 +50,6 @@ class LinariaAsset extends JSAsset {

if (result.cssText) {
output.css = result.cssText;

if (this.options.sourceMaps) {
output.css += `/*# sourceMappingURL=data:application/json;base64,${Buffer.from(
result.cssSourceMapText || ''
).toString('base64')}*/`;
}
}

return output;
Expand Down

0 comments on commit d314a1c

Please sign in to comment.