Skip to content

Commit f2d43d6

Browse files
committedNov 4, 2022
website: fix style issue.
1 parent 009c507 commit f2d43d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎scripts/index.mjs

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { create } from './create.mjs';
55

66
export const OUTOUT = path.resolve(process.cwd(), 'dist');
77
export const DOCS = path.resolve(process.cwd(), 'docs');
8-
export const CSSPATH = path.resolve(process.cwd(), 'scripts/style.css');
9-
export const CSS_OUTPUT_PATH = path.resolve(OUTOUT, 'style/style.css');
108

119
export async function createHTML(files = [], num = 0) {
1210
const dataFile = files[num];
@@ -46,9 +44,8 @@ export async function createHTML(files = [], num = 0) {
4644
export async function run() {
4745
await fs.ensureDir(OUTOUT);
4846
await fs.emptyDir(OUTOUT);
49-
await fs.ensureDir(path.dirname(CSS_OUTPUT_PATH));
47+
await fs.ensureDir(path.resolve(OUTOUT, 'style'));
5048
await fs.copy(path.resolve(process.cwd(), 'scripts/style'), path.resolve(OUTOUT, 'style'));
51-
// await fs.copyFile(CSSPATH, CSS_OUTPUT_PATH);
5249
const files = await recursiveReaddirFiles(process.cwd(), {
5350
ignored: /\/(node_modules|\.git)/,
5451
exclude: /(\.json|\.mjs|CONTRIBUTING\.md)$/,

0 commit comments

Comments
 (0)
Please sign in to comment.