Skip to content

Commit

Permalink
test: look at source map
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 24, 2020
1 parent 887522c commit 93e879a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.js
Expand Up @@ -62,6 +62,11 @@ function loader(content) {
// eslint-disable-next-line no-param-reassign
result.map = JSON.parse(result.map);

// eslint-disable-next-line no-console
console.log('FROM SASS:');
// eslint-disable-next-line no-console
console.log(result.map);

// result.map.file is an optional property that provides the output filename.
// Since we don't know the final filename in the webpack build chain yet, it makes no sense to have it.
// eslint-disable-next-line no-param-reassign
Expand All @@ -77,6 +82,11 @@ function loader(content) {
result.map.sources = result.map.sources.map((source) =>
path.resolve(this.rootContext, path.normalize(source))
);

// eslint-disable-next-line no-console
console.log('FROM LOADER:');
// eslint-disable-next-line no-console
console.log(result.map);
}

result.stats.includedFiles.forEach((includedFile) => {
Expand Down

0 comments on commit 93e879a

Please sign in to comment.