Skip to content

Custom Builds - using terser #341

Answered by ai
btakita asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, just use @size-limit/file and run Size Limit on files after your own build script. Something like:

{
  "scripts": {
    "build": "anything",
    "test": "npm build && size-limit"
  },
  "size-limit": [
    {
      "path": "dist/*.js",
    }
  ]
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by btakita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants