2017-05-16 08:00:56 -07:00
|
|
|
/**
|
|
|
|
* webpack configuration
|
|
|
|
*/
|
|
|
|
|
|
|
|
import module_ from './module';
|
|
|
|
import plugins from './plugins';
|
|
|
|
|
|
|
|
import langs from './langs';
|
|
|
|
import version from '../src/version';
|
|
|
|
|
|
|
|
module.exports = langs.map(([lang, locale]) => {
|
|
|
|
// Chunk name
|
|
|
|
const name = lang;
|
|
|
|
|
|
|
|
// Entries
|
|
|
|
const entry = {
|
2017-08-11 07:57:16 -07:00
|
|
|
desktop: './src/web/app/desktop/script.js',
|
|
|
|
mobile: './src/web/app/mobile/script.js',
|
2017-10-31 11:17:14 -07:00
|
|
|
ch: './src/web/app/ch/script.js',
|
2017-08-11 23:17:03 -07:00
|
|
|
stats: './src/web/app/stats/script.js',
|
2017-08-11 07:57:16 -07:00
|
|
|
status: './src/web/app/status/script.js',
|
|
|
|
dev: './src/web/app/dev/script.js',
|
|
|
|
auth: './src/web/app/auth/script.js'
|
2017-05-16 08:00:56 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
const output = {
|
|
|
|
path: __dirname + '/../built/web/assets',
|
|
|
|
filename: `[name].${version}.${lang}.js`
|
|
|
|
};
|
|
|
|
|
|
|
|
return {
|
|
|
|
name,
|
|
|
|
entry,
|
|
|
|
module: module_(lang, locale),
|
2017-11-03 01:46:42 -07:00
|
|
|
plugins: plugins(version, lang),
|
2017-05-16 08:00:56 -07:00
|
|
|
output
|
|
|
|
};
|
|
|
|
});
|