mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Update webpack.config.ts (#5567)
This commit is contained in:
parent
79e18b8a8e
commit
89a947919b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue