Skip to content

Commit

Permalink
Reduce bundle size (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien Nikolaou authored Nov 1, 2021
1 parent 7bdc99a commit bcadb04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*.md diff=markdown
*.php diff=php

public/*.css binary
public/*.js binary

/.github export-ignore
/tests export-ignore
.gitattributes export-ignore
Expand Down
7 changes: 6 additions & 1 deletion webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,10 @@ mix.options({
'@': path.resolve(__dirname, 'resources/js/'),
},
},
plugins: [new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)],
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /^\.\/locale$/,
contextRegExp: /moment$/,
}),
],
});

0 comments on commit bcadb04

Please sign in to comment.