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