1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-12 21:58:54 +09:00
MisskeyIO/webpack/plugins/const.ts
2017-05-17 00:00:56 +09:00

14 lines
298 B
TypeScript

/**
* Constant Replacer
*/
import * as webpack from 'webpack';
import version from '../../src/version';
const constants = require('../../src/const.json');
export default () => new webpack.DefinePlugin({
VERSION: JSON.stringify(version),
THEME_COLOR: JSON.stringify(constants.themeColor)
});