Skip to content

Commit 5222a2e

Browse files
alan-agius4clydin
authored andcommitted
test(@angular-devkit/build-angular): add css file so that a sourcemap can be generated when optimization is enabled
1 parent d024cea commit 5222a2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/angular_devkit/build_angular/src/browser/specs/output-hashing_spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ describe('Browser Builder output hashing', () => {
177177
});
178178

179179
it('does not hash non injected styles when optimization is enabled', async () => {
180+
host.writeMultipleFiles({ 'src/styles.css': 'body { background: blue; }' });
181+
180182
const overrides = {
181183
outputHashing: 'all',
182184
extractCss: true,

0 commit comments

Comments
 (0)