From 8b341d5fc7f78df3e08a3340ea93c25324dbb552 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 22 Feb 2017 02:27:19 +0900 Subject: wip --- webpack.config.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'webpack.config.ts') diff --git a/webpack.config.ts b/webpack.config.ts index 66d4eb2e13..00fd3f00a3 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -1,7 +1,7 @@ import * as webpack from 'webpack'; const StringReplacePlugin = require('string-replace-webpack-plugin'); -module.exports = (config, commit, env) => { +module.exports = (commit, env) => { const isProduction = env === 'production'; const isDebug = !isProduction; @@ -21,7 +21,7 @@ module.exports = (config, commit, env) => { loader: StringReplacePlugin.replace({ replacements: [ { pattern: /\$theme\-color\-foreground/g, replacement: () => '#fff' }, - { pattern: /\$theme\-color/g, replacement: () => config.themeColor }, + { pattern: /\$theme\-color/g, replacement: () => '#f76d6c' }, ] }) }, @@ -62,15 +62,7 @@ module.exports = (config, commit, env) => { new webpack.DefinePlugin({ VERSION: JSON.stringify(commit ? commit.hash : null), CONFIG: { - themeColor: JSON.stringify(config.themeColor), - apiUrl: JSON.stringify(config.api_url), - aboutUrl: JSON.stringify(config.about_url), - devUrl: JSON.stringify(config.dev_url), - host: JSON.stringify(config.host), - url: JSON.stringify(config.url), - recaptcha: { - siteKey: JSON.stringify(config.recaptcha.siteKey), - } + themeColor: JSON.stringify('#f76d6c') } }), new StringReplacePlugin(), -- cgit v1.2.3-freya