From ce216d218bc1ef7934d5de033f8a6f9e556e16d6 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Feb 2017 10:49:11 +0900 Subject: Clean up :sparkles: --- webpack.config.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'webpack.config.ts') diff --git a/webpack.config.ts b/webpack.config.ts index 00fd3f00a3..19e095a91c 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -1,6 +1,8 @@ import * as webpack from 'webpack'; const StringReplacePlugin = require('string-replace-webpack-plugin'); +const constants = require('./src/const.json'); + module.exports = (commit, env) => { const isProduction = env === 'production'; const isDebug = !isProduction; @@ -21,7 +23,7 @@ module.exports = (commit, env) => { loader: StringReplacePlugin.replace({ replacements: [ { pattern: /\$theme\-color\-foreground/g, replacement: () => '#fff' }, - { pattern: /\$theme\-color/g, replacement: () => '#f76d6c' }, + { pattern: /\$theme\-color/g, replacement: () => constants.themeColor }, ] }) }, @@ -62,7 +64,7 @@ module.exports = (commit, env) => { new webpack.DefinePlugin({ VERSION: JSON.stringify(commit ? commit.hash : null), CONFIG: { - themeColor: JSON.stringify('#f76d6c') + themeColor: JSON.stringify(constants.themeColor) } }), new StringReplacePlugin(), -- cgit v1.2.3-freya