Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit b44d1e7

Browse files
committed
Rename BUILD_DIR to PUBLISH_DIR
1 parent ea8d1ee commit b44d1e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = () => {
1616

1717
postBuild: async config => {
1818
const files = {};
19-
const glob = `${config.constants.BUILD_DIR}/**/*.{gif,jpg,jpeg,png,svg}`;
19+
const glob = `${config.constants.PUBLISH_DIR}/**/*.{gif,jpg,jpeg,png,svg}`;
2020
const paths = await globby(glob);
2121

2222
paths.map(path => {
@@ -49,7 +49,7 @@ module.exports = () => {
4949

5050
const formattedData = Object.keys(files).map(filename => {
5151
return [
52-
filename.replace(config.constants.BUILD_DIR, ""),
52+
filename.replace(config.constants.PUBLISH_DIR, ""),
5353
red(filesize(files[filename].pre)),
5454
green(filesize(files[filename].post)),
5555
green.bold(filesize(files[filename].diff))

0 commit comments

Comments
 (0)