Comments (5)
版本:weback 3
我在webpack.config.devServer 和app.config.webpack都尝试增加了 commress 配置,依然不起作用。
const compress = require('koa-compress');
这个插件本质上是起了一个koa,手写个中间件吧
from egg-webpack.
@iamnotblank egg 项目请通过 egg-static 开启 gzip
from egg-webpack.
@hubcarl 我的意思是通过egg-webpack编译,开发环境的静态资源,你有点答非所问哦
from egg-webpack.
@iamnotblank 开发环境目前不支持 gzip, 发布模式通过 egg-static 支持
from egg-webpack.
开发环境暂不没有计划支持 gzip
from egg-webpack.
Related Issues (20)
- 无法处理从内存里取出的mp4 HOT 1
- 前端页面热更新无效! HOT 5
- 需要自己实现render拦截,然后读取memoryFile吗 HOT 1
- js 请求404,如何设置 proxy HOT 3
- 页面热更新生效后一直处于编译状态 HOT 1
- 此项目是否还在维护? HOT 5
- Utils.readWebpackMemoryFile传了3个参数是bug吗 HOT 1
- lib/utils.js L84: spell error HOT 1
- proxy中间件会因为自定义的auth插件导致鉴权失败无法进行代理跳转 HOT 4
- how to use style-resources-loader HOT 1
- 事件监听有内存泄漏,改成once
- 无法启动多个webpack,报错 ERROR 10316 nodejs.unhandledExceptionError: listen EADDRINUSE HOT 1
- koa-compose 4.2.0更新导致proxy中间件不生效 HOT 1
- 当我配置了write-file-webpack-plugin插件但是未生成文件 HOT 2
- egg-webpack不支持compress, 导致在开发模式下,无法使用gzip,加载慢
- 出现javaScript heap out of memory
- 将egg-webpack升级到5.0.1后出现如下报错
- 能否不强依赖 'easywebpack-react' HOT 1
- 请问下这个插件只支持Egg1.x么?另外 视图(html、tpl)文件怎么调用内存中编译后的js文件? 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 egg-webpack.