1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-29 05:58:31 +09:00
misskey/webpack/webpack.config.ts

39 lines
798 B
TypeScript
Raw Normal View History

2017-05-17 00:00:56 +09: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 = {
desktop: './src/web/app/desktop/script.js',
mobile: './src/web/app/mobile/script.js',
2017-11-01 03:17:14 +09:00
ch: './src/web/app/ch/script.js',
2017-08-12 15:17:03 +09:00
stats: './src/web/app/stats/script.js',
status: './src/web/app/status/script.js',
dev: './src/web/app/dev/script.js',
auth: './src/web/app/auth/script.js'
2017-05-17 00:00:56 +09:00
};
const output = {
path: __dirname + '/../built/web/assets',
filename: `[name].${version}.${lang}.js`
};
return {
name,
entry,
module: module_(lang, locale),
2017-11-03 17:46:42 +09:00
plugins: plugins(version, lang),
2017-05-17 00:00:56 +09:00
output
};
});