View getScopedName.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const incstr = require('incstr'); | |
const createUniqueIdGenerator = () => { | |
const uniqIds = {}; | |
const generateNextId = incstr.idGenerator({ | |
alphabet: 'abcefghijklmnopqrstuvwxyzABCEFGHJKLMNOPQRSTUVWXYZ', | |
}); | |
return name => { | |
if (!uniqIds[name]) { |
View webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
change | |
splitChunks: { | |
chunks: 'all', | |
name: false, | |
}, | |
to | |
splitChunks: { |
View webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
change | |
splitChunks: { | |
chunks: 'all', | |
name: false, | |
}, | |
to | |
splitChunks: { |