1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

routing to login page

This commit is contained in:
Kyle Spearrin
2018-01-16 15:58:17 -05:00
parent a7994f7ebc
commit 824c5e5ff9
10 changed files with 74 additions and 21 deletions

View File

@@ -15,8 +15,14 @@ const isVendorModule = (module) => {
};
module.exports = {
devServer: {
contentBase: './src',
historyApiFallback: true,
quiet: true,
stats: 'minimal'
},
entry: {
'app': './src/app/main.ts'
'app': './src/main.ts'
},
module: {
rules: [
@@ -41,17 +47,17 @@ module.exports = {
path.resolve(__dirname, 'build/*')
]),
new webpack.optimize.CommonsChunkPlugin({
name: 'app/vendor',
name: 'vendor',
chunks: ['app'],
minChunks: isVendorModule
}),
new HtmlWebpackPlugin({
template: './src/index.html',
filename: 'index.html',
chunks: ['app/vendor', 'app']
chunks: ['vendor', 'app']
}),
new CopyWebpackPlugin([
])
],
resolve: {