Skip to content

Commit

Permalink
Merge pull request #2540 from nextcloud/bugfix/2528
Browse files Browse the repository at this point in the history
Only build one main bundle
  • Loading branch information
juliusknorr authored Nov 16, 2020
2 parents d085720 + 73f9df2 commit 3d051c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion templates/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@


style('deck', 'globalstyles');
script('deck', 'deck');
script('deck', 'main');

\OC::$server->getEventDispatcher()->dispatch('\OCP\Collaboration\Resources::loadAdditionalScripts');
12 changes: 5 additions & 7 deletions webpack.js
Original file line number Diff line number Diff line change
@@ -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'),
},
Expand All @@ -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)

0 comments on commit 3d051c8

Please sign in to comment.