Files
2017-03-11 14:52:30 -05:00

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'
})
]
};