Skip to content

Commit

Permalink
feat: generate source maps using sass with asset/resource
Browse files Browse the repository at this point in the history
  • Loading branch information
cap-Bernardito committed Jul 21, 2021
1 parent 2065b9b commit f850949
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/sourceMap-options.test.js
Expand Up @@ -303,8 +303,12 @@ describe("sourceMap option", () => {
const stats = await compile(compiler);
const { compilation } = stats;

// eslint-disable-next-line no-console
console.log(compilation.getAssets());
expect(compilation.getAsset("assets/language.css")).toBeDefined();
expect(compilation.getAsset("assets/language.css.map")).toBeDefined();
expect(
compilation.getAsset(`assets${path.sep}language.css.map`)
).toBeDefined();
expect(getWarnings(stats)).toMatchSnapshot("warnings");
expect(getErrors(stats)).toMatchSnapshot("errors");
});
Expand Down

0 comments on commit f850949

Please sign in to comment.