Skip to content
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

Javascript & CSS file are not readable, seems they are binary file #109

Closed
ecomsolution opened this issue Apr 7, 2021 · 5 comments
Closed

Comments

@ecomsolution
Copy link

Description:
javascript files and css files are not text files, I expect they are pure text files, but looks like they are binary files, is this the format issue, encoding issue, or there is way to convert them to text?

such as:
oui/applications/oui-app-cron/vue/dist/app.js
chunk-vendors.662c50cd.css

@zhaojh329
Copy link
Owner

gzip

@ecomsolution
Copy link
Author

Thank you for replying my question!
how do we decompress the compressed js file? Do we manually decompress it before we compile the QUI project? or is there a way to decompress the gzipped javascript automatically when the web browser load the page? See the view source of the javascript on the oui.htl page below.
oui_compress_javascript

@zhaojh329
Copy link
Owner

You can modify oui/oui-ui-core/vue/vue.config.js and oui/build-app/vue.config.js

@ecomsolution
Copy link
Author

ecomsolution commented Apr 9, 2021

I understand the reason why the CSS and JS are compressed since the Openwrt device has limit of Flash memory. I ran the Nginx and Apache on the Openwrt device, but it still shows the compressed content for CSS and JS. I am new to this, would you please provide additional information on how to configure this? Thank you!

@zhaojh329
Copy link
Owner

Vue3 + Nginx + Lua is coming...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants