Skip to content

Commit

Permalink
chore: hide filesize on watch
Browse files Browse the repository at this point in the history
  • Loading branch information
rafegoldberg committed Dec 25, 2021
1 parent 1bff0ae commit bd8cb71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import resolve from "@rollup/plugin-node-resolve";

const ENV = process.env.NODE_ENV || "development";
const PKG = require(`${process.cwd()}/package.json`);
const RAN = process.env.npm_lifecycle_event;

export default {
input: "src/index.js",
Expand All @@ -26,7 +27,7 @@ export default {
],
plugins: [
ENV === "development" && progress(),
ENV === "development" && filesize(),
ENV === "development" && RAN !== "watch" && filesize(),

external(),
resolve(),
Expand Down

0 comments on commit bd8cb71

Please sign in to comment.