Skip to content

Commit c69e092

Browse files
Fabian Wileshansl
Fabian Wiles
authored andcommitted
docs(@angular/cli): fix universal example webpack config
1 parent 2d23be1 commit c69e092

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/documentation/stories/universal-rendering.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ const webpack = require('webpack');
312312

313313
module.exports = {
314314
entry: { server: './server.ts' },
315-
resolve: { extensions: ['.ts', '.js'] },
315+
resolve: { extensions: ['.js', '.ts'] },
316316
target: 'node',
317317
// this makes sure we include node_modules and other 3rd party libraries
318318
externals: [/(node_modules|main\..*\.js)/],
@@ -336,6 +336,7 @@ module.exports = {
336336
new webpack.ContextReplacementPlugin(
337337
/(.+)?express(\\|\/)(.+)?/,
338338
path.join(__dirname, 'src'),
339+
{}
339340
)
340341
]
341342
}

0 commit comments

Comments
 (0)