From 3f8ebac466ece8e9598432f3f574ec44e420c03b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 05:43:00 +0900 Subject: なんかもうめっちゃ変えた MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #940 --- webpack/plugins/const.ts | 14 -------------- webpack/plugins/index.ts | 2 -- 2 files changed, 16 deletions(-) delete mode 100644 webpack/plugins/const.ts (limited to 'webpack/plugins') diff --git a/webpack/plugins/const.ts b/webpack/plugins/const.ts deleted file mode 100644 index f64160b01a..0000000000 --- a/webpack/plugins/const.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Constant Replacer - */ - -import * as webpack from 'webpack'; - -import version from '../../src/version'; -const constants = require('../../src/const.json'); - -export default lang => new webpack.DefinePlugin({ - VERSION: JSON.stringify(version), - LANG: JSON.stringify(lang), - THEME_COLOR: JSON.stringify(constants.themeColor) -}); diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts index d37047b672..24782a1de6 100644 --- a/webpack/plugins/index.ts +++ b/webpack/plugins/index.ts @@ -1,6 +1,5 @@ const StringReplacePlugin = require('string-replace-webpack-plugin'); -import constant from './const'; import hoist from './hoist'; //import minify from './minify'; import banner from './banner'; @@ -10,7 +9,6 @@ const isProduction = env === 'production'; export default (version, lang) => { const plugins = [ - constant(lang), new StringReplacePlugin(), hoist() ]; -- cgit v1.2.3-freya