Comments (5)
What tech are you using for your server? Is it an express.js server? If it is, you can use express-static-gzip.
from compress-create-react-app.
from compress-create-react-app.
I'm not familiar with netify but it shouldn't be very complicated to make a server serve file.ext.br instead of file.ext. See of netify's documentation helps you.
I'm closing this since it is not an issue with compress-CRA.
from compress-create-react-app.
I had the same question. How do I serve Brotli files in production. I know I need a Brotli decoder but I can't wrap my head around the implementation. Do you have any tutorials showing how to deploy on a service like Heroku, Vercel or whatever you use? Thank you.
from compress-create-react-app.
@MurageKibicho You should be able to serve the brotli files directly. The exact way to do it depends on your server. Are you using Express.js?
from compress-create-react-app.
Related Issues (11)
- Specify build folder as argument HOT 5
- 'compress-cra' is not recognized HOT 5
- The package has no tests HOT 1
- Use LF instead of CRLF HOT 2
- Does not compress all types of files HOT 2
- No documentation for new features HOT 1
- Getting error when setting retainUncompressedFiles to false HOT 2
- EOF running out of memory HOT 3
- env: node\r: No such file or directory HOT 2
- Add to my framework 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 compress-create-react-app.