8 lines
241 B
JavaScript
8 lines
241 B
JavaScript
const readDir = require('fs').readdirSync;
|
|
const files = readDir('./src/locale/lang');
|
|
const entry = {};
|
|
files.forEach(file => {
|
|
const name = file.split('.')[0];
|
|
entry[name] = './src/locale/lang/' + file;
|
|
});
|
|
module.exports = entry;
|