Skip to content

Commit

Permalink
fix: missing themes for root
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Dec 14, 2023
1 parent 1c5a701 commit 78570bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,6 +6,7 @@
/docs/preview.html
/lib
/node_modules
/themes

# exceptions
!.gitkeep
2 changes: 1 addition & 1 deletion build/mincss.js
Expand Up @@ -7,7 +7,7 @@ const files = fs.readdirSync(path.resolve('lib/themes'));
files.forEach(file => {
file = path.resolve('lib/themes', file);
cssnano
.process(fs.readFileSync(file))
.process(fs.readFileSync(file), {from: undefined})
.then(result => {
fs.writeFileSync(file, result.css);
})
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -24,8 +24,8 @@
],
"scripts": {
"build:cover": "node build/cover.js",
"build:css:min": "node build/mincss.js",
"build:css": "mkdirp lib/themes && node build/css -o lib/themes",
"build:css:min": "mkdirp lib/themes && node build/css -o lib/themes && node build/mincss.js",
"build:css": "mkdirp themes && node build/css -o themes",
"build:emoji": "node ./build/emoji.js",
"build:html": "node ./build/html.js",
"build:js": "cross-env NODE_ENV=production node build/build.js",
Expand Down

0 comments on commit 78570bc

Please sign in to comment.