From fb70e3b1769e9d008b75585e7c3fdfa061491f4d Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 17 May 2017 00:00:56 +0900 Subject: Refactoring --- webpack/plugins/const.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 webpack/plugins/const.ts (limited to 'webpack/plugins/const.ts') diff --git a/webpack/plugins/const.ts b/webpack/plugins/const.ts new file mode 100644 index 0000000000..ccfcb45260 --- /dev/null +++ b/webpack/plugins/const.ts @@ -0,0 +1,13 @@ +/** + * 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) +}); -- cgit v1.2.3-freya