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

Commit 0b83ecf

Browse files
Merge pull request #10 from ehmicky/chore/rename-publish-dir
Rename `BUILD_DIR` to `PUBLISH_DIR`
2 parents a95544b + b44d1e7 commit 0b83ecf

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
@@ -13,7 +13,7 @@ const svgo = require("imagemin-svgo");
1313
module.exports = {
1414
onPostBuild: async config => {
1515
const files = {};
16-
const glob = `${config.constants.BUILD_DIR}/**/*.{gif,jpg,jpeg,png,svg}`;
16+
const glob = `${config.constants.PUBLISH_DIR}/**/*.{gif,jpg,jpeg,png,svg}`;
1717
const paths = await globby(glob);
1818

1919
paths.map(path => {
@@ -46,7 +46,7 @@ module.exports = {
4646

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

0 commit comments

Comments
 (0)