How to use this plugin #55
-
Bug report 🐞When I used this tool to gzip the element-plus package, the compressed file I got was wrong and could not be used. Version & Environmentvue3 + vite project ExpectionI hope the compressed product can be used normally. Actual results (or Errors) |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments
-
vite's version? |
Beta Was this translation helpful? Give feedback.
-
Can you share your full vite's config or create a minimal reproduction |
Beta Was this translation helpful? Give feedback.
-
"vite": "4.0.0" |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
My entry point import { createApp } from "vue";
import Ele from "element-plus";
import App from "./app.vue";
import "element-plus/dist/index.css";
createApp(App).use(Ele).mount("#app"); <template>
<div>
<el-button>1</el-button>
</div>
</template>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ok, Let me guess. The filename is |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
AFAIK, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
So it not a bug. Just some missing in document? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm afraid you're not set the response header in your server. For Nginx you can refer document. Or view question. This plugin |
Beta Was this translation helpful? Give feedback.
-
I started a local server and tested it using the server script you provided last time. |
Beta Was this translation helpful? Give feedback.
-
:) AFAIK. you can try set |
Beta Was this translation helpful? Give feedback.
:) AFAIK. you can try set
Content-Encoding
visible in your local chrome devtool network tab. Or check your compressed source response header has theContent-Encoding
If it has in, It means is work well.Here is the document for the compression doc