mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Fixed sodo-search build script
This commit is contained in:
parent
e7cef15bdf
commit
a90cc2d7ab
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user