diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 10:49:11 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 10:49:11 +0900 |
| commit | ce216d218bc1ef7934d5de033f8a6f9e556e16d6 (patch) | |
| tree | 65f4c39f4490922bef6a762271b5ea2bc54f88e7 /webpack.config.ts | |
| parent | Add 親切なエラーメッセージ (diff) | |
| download | misskey-ce216d218bc1ef7934d5de033f8a6f9e556e16d6.tar.gz misskey-ce216d218bc1ef7934d5de033f8a6f9e556e16d6.tar.bz2 misskey-ce216d218bc1ef7934d5de033f8a6f9e556e16d6.zip | |
Clean up :sparkles:
Diffstat (limited to 'webpack.config.ts')
| -rw-r--r-- | webpack.config.ts | 6 |
1 files changed, 4 insertions, 2 deletions
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(), |