diff options
| author | syuilo⭐️ <Syuilotan@yahoo.co.jp> | 2017-02-22 04:20:44 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-22 04:20:44 +0900 |
| commit | e7f3325cb67cbad71bc4228add8cd59f4e1dee4e (patch) | |
| tree | d62b2e92a3a1cfae3798cf8e676a2f740dabadb2 /webpack.config.ts | |
| parent | Clean up (diff) | |
| parent | well done (diff) | |
| download | sharkey-e7f3325cb67cbad71bc4228add8cd59f4e1dee4e.tar.gz sharkey-e7f3325cb67cbad71bc4228add8cd59f4e1dee4e.tar.bz2 sharkey-e7f3325cb67cbad71bc4228add8cd59f4e1dee4e.zip | |
Merge pull request #194 from syuilo/no-build-requires-config
No build requires config
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(), |