sanniassin / react-input-mask

Input masking component for React. Made with attention to UX.
MIT License
2.22k stars 257 forks source link

Combine npm scripts into rollup multiconfig #134

Closed TrySound closed 6 years ago

TrySound commented 6 years ago

In this diff I combined rollup configs to reduce node and rollup load time. It is saved half of build time (7-8s to 3.5s for me).

Added size snapshot plugin to track the size across any commit. This increased a bit build time to ~5s. So we still win here.

Removed replace plugin which does not affect existing code.

Reused main field from package.json in rollup config.

sanniassin commented 6 years ago

Thanks! I suppose we can also remove rollup-plugin-node-resolve.

TrySound commented 6 years ago

Good catch!

TrySound commented 6 years ago

Done