ensure rollup builds are the expected size
npm install rollup-plugin-filesize-checka small rollup plugin to ensure your build is approx the expected filesize.
npm i rollup-plugin-filesize-check --save-dev
then in rollup config:
``js
import sizeCheck from 'rollup-plugin-filesize-check'
export default [
{
input: 'src/index.js',
output: [{ file: 'builds/out.js', format: 'umd' }],
plugins: [
sizeCheck({
expect: 95, // sizes in kb
warn: 5 // acceptable diff (+/-)
})
]
}
]
`
looks best with rollup -c --silent` flag
- expect
* warn
- rollup-plugin-filesize by ritz078
- rollup-plugin-sizes by tivac
MIT