Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.3 KiB

var webpack = require('webpack'),
webpackMerge = require('webpack-merge'),
HtmlWebpackPlugin = require('html-webpack-plugin'),
commonConfig = require('./webpack.config.js'),
helpers = require('./helpers');
module.exports = webpackMerge(commonConfig, {
/**
* The entry point for the bundle
* Our Angular.js app
*
* See: https://webpack.js.org/configuration/entry-context/
*/
entry: {
'shims': './app/shims.ts',
'app': './app/app.ts'
},
plugins: [
/**
* Shares common code between the pages.
*
* See: https://webpack.js.org/plugins/commons-chunk-plugin/
*/
new webpack.optimize.CommonsChunkPlugin({
name: ['app', 'shims']
}),
/**
* Simplifies creation of HTML files to serve your webpack bundles.
* This is especially useful for webpack bundles that include a hash in the filename
* which changes every compilation.
*
* See: https://github.com/ampedandwired/html-webpack-plugin
*/
new HtmlWebpackPlugin({
template: 'wwwroot/index.html', hash: true
}),
new HtmlWebpackPlugin({
template: 'wwwroot/theme.html', hash: true, filename: 'theme.html'
})
]
});