Sharkey/webpack/plugins/const.ts

14 lines
298 B
TypeScript
Raw Normal View History

2017-05-16 17:00:56 +02:00
/**
* 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)
});