Remove ui/views/modals bundles (#3946)

This commit is contained in:
Nicolas Gotchac 2016-12-22 17:21:59 +01:00 committed by Jaco Greeff
parent 203b419080
commit 1140f9c9f8

View File

@ -40,9 +40,6 @@ module.exports = {
context: path.join(__dirname, '../src'), context: path.join(__dirname, '../src'),
entry: Object.assign({}, Shared.dappsEntry, { entry: Object.assign({}, Shared.dappsEntry, {
modals: './modals/index.js',
views: './views/index.js',
ui: './ui/index.js',
index: './index.js' index: './index.js'
}), }),
output: { output: {
@ -168,8 +165,6 @@ module.exports = {
favicon: FAVICON, favicon: FAVICON,
chunks: [ chunks: [
isProd ? null : 'commons', isProd ? null : 'commons',
'common.modals', 'common.views', 'common.ui',
'modals', 'views', 'ui',
'index' 'index'
] ]
}), }),
@ -183,27 +178,6 @@ module.exports = {
entry: path.join(__dirname, '../src/serviceWorker.js') entry: path.join(__dirname, '../src/serviceWorker.js')
}), }),
new webpack.optimize.CommonsChunkPlugin({
filename: 'commons.modals.[hash:10].js',
name: 'common.modals',
minChunks: 2,
chunks: [ 'index', 'modals' ]
}),
new webpack.optimize.CommonsChunkPlugin({
filename: 'commons.views.[hash:10].js',
name: 'common.views',
minChunks: 2,
chunks: [ 'index', 'views' ]
}),
new webpack.optimize.CommonsChunkPlugin({
filename: 'commons.ui.[hash:10].js',
name: 'common.ui',
minChunks: 2,
chunks: [ 'index', 'ui' ]
}),
DappsHTMLInjection DappsHTMLInjection
); );