Skip to content

Commit 92139d7

Browse files
committed
fix: fix missing static file
1 parent e5f6a6a commit 92139d7

File tree

4 files changed

+985
-0
lines changed

4 files changed

+985
-0
lines changed

build/index.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const fs = require('fs');
22
const path = require('path');
33
const chalk = require('chalk');
4+
const fse = require('fs-extra');
45

56
const url = require('./scripts/url');
67
const meta = require('./scripts/meta');
@@ -155,10 +156,18 @@ function buildDifficulties () {
155156
});
156157
}
157158

159+
function copyStaticFile() {
160+
fse.copySync(
161+
path.resolve(__dirname, './static'),
162+
path.resolve(__dirname, '../docs/static')
163+
);
164+
}
165+
158166
buildProblems();
159167
sortProblems();
160168
buildPages();
161169
buildTags();
162170
buildDifficulties();
171+
copyStaticFile();
163172

164173
console.log(`\n${chalk.blue('Done!')}\n`);

0 commit comments

Comments
 (0)