Skip to content

Commit

Permalink
material render with universal
Browse files Browse the repository at this point in the history
  • Loading branch information
qdouble committed May 12, 2017
1 parent b130b49 commit 8878c75
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,30 @@ const clientConfig = function webpackConfig(): WebpackConfig {

return config;

} ();
}();

const serverConfig: WebpackConfig = {
target: 'node',
entry: AOT ? './src/server.aot' : './src/server',
output: {
filename: 'server.js',
path: root('dist')
}
},
module: {
rules: [
{
test: /@angular(\\|\/)material/,
loader: 'imports-loader',
options: {
window: '>global',
'CSS': '>null',
navigator: '>{get userAgent(){ return \'Chrome\'; }}',
document: '>global.document',
},
},
]
},

};

const defaultConfig = {
Expand Down

0 comments on commit 8878c75

Please sign in to comment.