1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-23 19:18:53 +09:00
cherrypick/webpack/plugins/const.ts

15 lines
329 B
TypeScript
Raw Normal View History

2017-05-17 00:00:56 +09:00
/**
* Constant Replacer
*/
import * as webpack from 'webpack';
import version from '../../src/version';
const constants = require('../../src/const.json');
2017-11-03 17:46:42 +09:00
export default lang => new webpack.DefinePlugin({
2017-05-17 00:00:56 +09:00
VERSION: JSON.stringify(version),
2017-11-03 17:46:42 +09:00
LANG: JSON.stringify(lang),
2017-05-17 00:00:56 +09:00
THEME_COLOR: JSON.stringify(constants.themeColor)
});