You've already forked ng-universal-demo
mirror of
https://github.com/encounter/ng-universal-demo.git
synced 2026-03-30 11:31:16 -07:00
29 lines
632 B
JavaScript
29 lines
632 B
JavaScript
const { root } = require('./helpers');
|
|
|
|
const { AotPlugin } = require('@ngtools/webpack');
|
|
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
|
const ScriptExtPlugin = require('script-ext-html-webpack-plugin');
|
|
|
|
/**
|
|
* This is a client config which should be merged on top of common config
|
|
*/
|
|
module.exports = {
|
|
entry: root('./src/main.browser.ts'),
|
|
output: {
|
|
filename: 'client.js'
|
|
},
|
|
target: 'web',
|
|
plugins: [
|
|
new HtmlWebpackPlugin({
|
|
template: root('./src/index.html'),
|
|
output: root('dist'),
|
|
inject: 'head'
|
|
}),
|
|
new ScriptExtPlugin({
|
|
defaultAttribute: 'defer'
|
|
})
|
|
]
|
|
};
|