Skip to content

Commit

Permalink
Fix for modules being executed multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsz committed Jun 26, 2020
1 parent a507853 commit 035a3e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 0 additions & 3 deletions init/default/src/javascripts/_entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
* shared.js is automatically created, which contains all common JS (chunks / modules imported from more than 1 entry files).
*/
module.exports = {
'shared': [
'./common'
],
'main': [
'./common',
'./main'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@videinfra/static-website-builder",
"version": "1.0.10",
"version": "1.1.0",
"description": "Customizable static site project builder",
"license": "MIT",
"engines": {
Expand Down
8 changes: 6 additions & 2 deletions tasks/javascripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ exports.javascripts = {
},

optimization: {
runtimeChunk: {name: 'shared'},
splitChunks: {
cacheGroups: {
default: {
default: false,
vendor: false,

shared: {
name: 'shared',
chunks: 'initial',
chunks: 'all',
minChunks: 3,
enforce: true,
}
Expand Down

0 comments on commit 035a3e7

Please sign in to comment.