We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b130b49 commit 8878c75Copy full SHA for 8878c75
webpack.config.ts
@@ -316,15 +316,30 @@ const clientConfig = function webpackConfig(): WebpackConfig {
316
317
return config;
318
319
-} ();
+}();
320
321
const serverConfig: WebpackConfig = {
322
target: 'node',
323
entry: AOT ? './src/server.aot' : './src/server',
324
output: {
325
filename: 'server.js',
326
path: root('dist')
327
- }
+ },
328
+ module: {
329
+ rules: [
330
+ {
331
+ test: /@angular(\\|\/)material/,
332
+ loader: 'imports-loader',
333
+ options: {
334
+ window: '>global',
335
+ 'CSS': '>null',
336
+ navigator: '>{get userAgent(){ return \'Chrome\'; }}',
337
+ document: '>global.document',
338
339
340
+ ]
341
342
+
343
};
344
345
const defaultConfig = {
0 commit comments