summaryrefslogtreecommitdiff
path: root/webpack.config.ts
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2019-11-01 05:40:11 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-11-01 05:40:11 +0900
commite1cf090440b7920fa65a6e7d465c684cc152f24a (patch)
tree9c89f20f8591d547e1867ab59067d9d6dc168594 /webpack.config.ts
parentResolve #5560 (#5568) (diff)
downloadsharkey-e1cf090440b7920fa65a6e7d465c684cc152f24a.tar.gz
sharkey-e1cf090440b7920fa65a6e7d465c684cc152f24a.tar.bz2
sharkey-e1cf090440b7920fa65a6e7d465c684cc152f24a.zip
Update webpack.config.ts (#5567)
Diffstat (limited to 'webpack.config.ts')
-rw-r--r--webpack.config.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/webpack.config.ts b/webpack.config.ts
index 24d2337a7e..ba0e09dde5 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -6,7 +6,7 @@ import * as fs from 'fs';
import * as webpack from 'webpack';
import chalk from 'chalk';
const { VueLoaderPlugin } = require('vue-loader');
-//const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
+const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin');
@@ -20,6 +20,7 @@ class WebpackOnBuildPlugin {
}
const isProduction = process.env.NODE_ENV == 'production';
+const useHardSource = process.env.MISSKEY_USE_HARD_SOURCE;
const constants = require('./src/const.json');
@@ -113,7 +114,7 @@ module.exports = {
}]
},
plugins: [
- //new HardSourceWebpackPlugin(),
+ ...(useHardSource ? [new HardSourceWebpackPlugin()] : []),
new ProgressBarPlugin({
format: chalk` {cyan.bold yes we can} {bold [}:bar{bold ]} {green.bold :percent} {gray (:current/:total)} :elapseds`,
clear: false