Adjust webpack chunks (#3229)

This commit is contained in:
Jaco Greeff 2020-07-18 11:33:43 +02:00 committed by GitHub
parent 99567a1224
commit b00c322045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,17 +152,11 @@ function createWebpack (ENV, context) {
name: 'react.fa',
test: /node_modules\/(@fortawesome)/
},
reactSUI: {
chunks: 'initial',
enforce: true,
name: 'react.sui',
test: /node_modules\/(@semantic-ui-react|@stardust|classnames|keyboard-key|prop-types|semantic-ui-react|semantic-ui-css)/
},
reactUI: {
chunks: 'initial',
enforce: true,
name: 'react.ui',
test: /node_modules\/(@emotion|chart\.js|codeflask|copy-to-clipboard|create-react|file-selector|file-saver|hoist-non-react|i18next|jdenticon|mini-create-react|popper\.js|qrcode-generator|react|react-|remark-parse|styled-components)/
test: /node_modules\/(@emotion|@semantic-ui-react|@stardust|classnames|chart\.js|codeflask|copy-to-clipboard|create-react|file-selector|file-saver|hoist-non-react|i18next|jdenticon|keyboard-key|mini-create-react|popper\.js|prop-types|qrcode-generator|react|react-|remark-parse|semantic-ui-react|semantic-ui-css|styled-components)/
},
vendor01: {
chunks: 'initial',