Skip to content

Commit 06d7612

Browse files
alan-agius4hansl
authored andcommitted
docs(@ngtools/webpack): remove sourcemap from loader settings
docs(@ngtools/webpack): add `sourcemap` from plugin settings
1 parent a92078f commit 06d7612

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/@ngtools/webpack/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ exports = { /* ... */
1616
rules: [
1717
{
1818
test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
19-
loader: '@ngtools/webpack',
20-
sourcemap: true
19+
loader: '@ngtools/webpack'
2120
}
2221
]
2322
},
2423

2524
plugins: [
2625
new AngularCompilerPlugin({
2726
tsConfigPath: 'path/to/tsconfig.json',
28-
entryModule: 'path/to/app.module#AppModule'
27+
entryModule: 'path/to/app.module#AppModule',
28+
sourceMap: true
2929
})
3030
]
3131
}
@@ -41,16 +41,16 @@ exports = { /* ... */
4141
rules: [
4242
{
4343
test: /\.ts$/,
44-
loader: '@ngtools/webpack',
45-
sourcemap: true
44+
loader: '@ngtools/webpack'
4645
}
4746
]
4847
},
4948

5049
plugins: [
5150
new AotPlugin({
5251
tsConfigPath: 'path/to/tsconfig.json',
53-
entryModule: 'path/to/app.module#AppModule'
52+
entryModule: 'path/to/app.module#AppModule',
53+
sourceMap: true
5454
})
5555
]
5656
}

0 commit comments

Comments
 (0)