Merge pull request #2540 from nextcloud/bugfix/2528
Only build one main bundle
This commit is contained in:
@@ -23,6 +23,6 @@
|
||||
|
||||
|
||||
style('deck', 'globalstyles');
|
||||
script('deck', 'deck');
|
||||
script('deck', 'main');
|
||||
|
||||
\OC::$server->getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
|
||||
|
||||
12
webpack.js
12
webpack.js
@@ -1,10 +1,9 @@
|
||||
const webpackConfig = require('@nextcloud/webpack-vue-config')
|
||||
const path = require('path');
|
||||
const path = require('path')
|
||||
const { merge } = require('webpack-merge')
|
||||
|
||||
const config = {
|
||||
entry: {
|
||||
deck: path.join(__dirname, 'src', 'main.js'),
|
||||
collections: path.join(__dirname, 'src', 'init-collections.js'),
|
||||
dashboard: path.join(__dirname, 'src', 'init-dashboard.js'),
|
||||
},
|
||||
@@ -17,10 +16,9 @@ const config = {
|
||||
extensions: ['*', '.js', '.vue', '.json'],
|
||||
modules: [
|
||||
path.resolve(__dirname, 'node_modules'),
|
||||
'node_modules'
|
||||
]
|
||||
}
|
||||
};
|
||||
'node_modules',
|
||||
],
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = merge(webpackConfig, config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user