Fixed sodo-search build script

This commit is contained in:
Fabien "egg" O'Carroll 2023-04-27 00:20:27 +01:00
parent e7cef15bdf
commit a90cc2d7ab

View File

@ -2,17 +2,6 @@ const rewire = require('rewire');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const defaults = rewire('react-scripts/scripts/build.js');
let config = defaults.__get__('config');
const fs = require('fs');
/* eslint-disable no-console */
const log = console.log;
/* eslint-enable no-console */
fs.copyFile('./public/main.css', './umd/main.css', (err) => {
if (err) {
throw err;
}
log('Copied main.css');
});
config.optimization.splitChunks = {
cacheGroups: {