diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 02:27:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 02:27:19 +0900 |
| commit | 8b341d5fc7f78df3e08a3340ea93c25324dbb552 (patch) | |
| tree | 4f181b878e84f885a885ef38dec833a0d435f878 /webpack.config.ts | |
| parent | Merge pull request #193 from syuilo/no-tag-ls (diff) | |
| download | sharkey-8b341d5fc7f78df3e08a3340ea93c25324dbb552.tar.gz sharkey-8b341d5fc7f78df3e08a3340ea93c25324dbb552.tar.bz2 sharkey-8b341d5fc7f78df3e08a3340ea93c25324dbb552.zip | |
wip
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 14 |
1 files changed, 3 insertions, 11 deletions
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(), |