Comments (11)
@mflores-verys sorry for the long delay. Had hard times because of the conference.
I wanted to confirm, does that option exist today or are you suggesting this would be a good capability for someone to add via PR?
Size Limit doesnβt have this option.
If you want to send PR, I will help you and accept it.
from size-limit.
Do I understand correctly that you want --why
with custom webpack config?
In this case, just add Webpack Bundle Analyzer to your custom config.
Maybe we can do it automatically? Like changing webpack config in Size Limit. Do you want to send PR? (I am preparing for the conference and will be able to do it only in next week).
from size-limit.
I guess i'm trying to understand where the build is being stored. If I could customize it using CLI I could then store it using CircleCI to define temp folders which are copied into my artifacts.
See documentation here. https://circleci.com/docs/2.0/artifacts/
I can try to get a PR up this weekend if this is something that would be useful for other consumers as well. π
from size-limit.
@jeffredodd Size Limit builds a project in memory. So you will not find it on the disk. Why do you need to find it?
from size-limit.
@ai The purpose of this is to store the information on a per build basis. I work in a repository that receives a lot of internal contributions daily and we store our test coverage data in artifacts so we have a historical reference to the values at build time. This helps us during investigations say on why test coverage decreased, when, why it happened, etc.
We are hoping to do the same thing with SizeLimit, and by storing the output of --why
would allow us to browse this information historical using the same tools versus pulling down a specific commit number and running it locally.
from size-limit.
@jeffredodd Got it. Do you want to store total bundle size or you want to store the whole --why
tree?
from size-limit.
Usually we store the whole webpack bundle or --why
tree. I'll try to take a stab at it this weekend! Your feedback will be appreciated π.
from size-limit.
There are 2 options:
- You use custom webpack config, add Webpack Bundle Analyzer there with custom callback with
stats
data. - You can add
--why-stats path/to/file/to/save/stats
option to Size Limit
from size-limit.
Do you have custom webpack config right now?
from size-limit.
@jeffredodd Sorry to bother you here but I didn't find any other way to contact you: What's your experience so far with using build artifacts for historical data?
The circle CI documentation says that there is no guarantee about storage duration and that artifacts should only be used around build time. I would like to use build artifacts for historical analysis of our builds but the statements on the documentation lead me to believe that they're not appropriate for those things.
There is a 3GB curl file size limit. Artifacts are designed to be useful around the time of the build. It is best practice not to rely on artifacts as a software distribution mechanism with long term future guarantees.
-- https://circleci.com/docs/2.0/artifacts/#artifacts-overview
from size-limit.
You can add --why-stats path/to/file/to/save/stats option to Size Limit
I wanted to confirm, does that option exist today or are you suggesting this would be a good capability for someone to add via PR?
from size-limit.
Related Issues (20)
- An NX plugin support HOT 5
- save and compare previous size result HOT 1
- Possibility to use size-limit with nextjs apps HOT 1
- Should I ignore some file types?
- size-limit fails with rxjs imports
- Add customisation for improving performance culture HOT 6
- Loosen strictness of peer dependency requirement of `tslib` HOT 1
- Global installation with plugin support HOT 5
- React should be peer dependency HOT 7
- The comment might be misleading when size limit fails HOT 5
- Unable to run on windows 10 HOT 4
- Receive ERR_UNSUPPORTED_ESM_URL_SCHEME error on version 10 HOT 5
- Switch from GZIP to Brotli by default HOT 4
- plugins are `import`ed with `require.resolve` which will resolve `commonjs` entry for dual package HOT 4
- Allow customize error message HOT 1
- Inaccurate bundle size when using dynamic imports HOT 10
- Support `.size-limit.mjs` config file HOT 2
- Migrate codebase to TypeScript HOT 4
- Esbuild plugin produces incorrect numbers when CSS used HOT 7
- Extra blank lines when using --silent HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from size-limit.