-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue-cli: size-limit error on build #64
Comments
Show your Size Limit config. |
You are right, sorry, I will post my entire package.json today, now I am busy. Thanks for contact. |
I don't know the whole story, but seems like you need pack the bundle with your own bundler and then set Or you can change the config in Size Limit’s webpack by |
Here is the proccess: yarn build to generate the folder dist, for production use, this is the contents: dist This is my package.json:
|
OK. You need to |
You mean the build.js or the contents inside dist folder? |
Contents inside dist folder |
I changed to this:
I got this message:
But I can not see the generated files, the size still the same
|
Show your |
BTw, by writing only |
Ok, I will try with dist/* |
Well, remains the same size. Size-limit output:
My dist folder:
|
Show your dist/ content. |
Here:
|
|
The same result, the dist folder is 9,7M. Size-limit output: This size-limit works only to js files? Can I test with only one file without webpack? |
Check the size of Size Limit with |
Well, the map files are bigger, but the size not changed when I do size-limit with only one file too. Maybe my project configuration not works with size-limit. |
What is a size or your
It works, you just need to set correct path to |
I tried point to only one file:
And the size not changed. This file has the original size of 677k, using size-limit the size not changed. |
Is important to see that this vendor is minified and uglyfied, maybe this is the problem? |
Hm, maybe we have a issue here :-/ I will check it this weekend. As temporary solution you can write a list of files in array:
|
Ok @ai Thanks for attention, I will waiting for your time. |
Other important information is that, when I tried to use size-limit to .map files, an error is raised. |
Good day, see you later :) |
@rof20004 also, Size Limit gzip the files (since your client will receive files gzipped). You can add |
I am using vue-cli to generate the project front-end.
In my scripts to create production bundle I need to execute: yarn build.
This works and my dist folder has 9.7 Mega of size, I tried to use the size-limit but not works, show me this error:
I am working using Vue components (.vue files).
The text was updated successfully, but these errors were encountered: