From 1092d438021667461f978fb548621d4c37c15521 Mon Sep 17 00:00:00 2001 From: Floatingghost Date: Sun, 23 Jun 2024 03:02:45 +0100 Subject: [PATCH] remove nonsense dep --- build/build.js | 58 +++++++++++++++++++++++++------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/build/build.js b/build/build.js index b3c9aad4..bca7ead3 100644 --- a/build/build.js +++ b/build/build.js @@ -1,36 +1,36 @@ // https://github.com/shelljs/shelljs -require('./check-versions')() -require('shelljs/global') -env.NODE_ENV = 'production' +require("./check-versions")(); +require("shelljs/global"); +env.NODE_ENV = "production"; -var path = require('path') -var config = require('../config') -var ora = require('ora') -var webpack = require('webpack') -var webpackConfig = require('./webpack.prod.conf') +var path = require("path"); +var config = require("../config"); +var webpack = require("webpack"); +var webpackConfig = require("./webpack.prod.conf"); console.log( - ' Tip:\n' + - ' Built files are meant to be served over an HTTP server.\n' + - ' Opening index.html over file:// won\'t work.\n' -) + " Tip:\n" + + " Built files are meant to be served over an HTTP server.\n" + + " Opening index.html over file:// won't work.\n", +); -var spinner = ora('building for production...') -spinner.start() - -var assetsPath = path.join(config.build.assetsRoot, config.build.assetsSubDirectory) -rm('-rf', assetsPath) -mkdir('-p', assetsPath) -cp('-R', 'static/*', assetsPath) +var assetsPath = path.join( + config.build.assetsRoot, + config.build.assetsSubDirectory, +); +rm("-rf", assetsPath); +mkdir("-p", assetsPath); +cp("-R", "static/*", assetsPath); webpack(webpackConfig, function (err, stats) { - spinner.stop() - if (err) throw err - process.stdout.write(stats.toString({ - colors: true, - modules: false, - children: false, - chunks: false, - chunkModules: false - }) + '\n') -}) + if (err) throw err; + process.stdout.write( + stats.toString({ + colors: true, + modules: false, + children: false, + chunks: false, + chunkModules: false, + }) + "\n", + ); +});