Comments (3)
override 函数里用什么loader可以压缩,求个方法。
from eeducation.
@bb54661447 修改config-overrides.js
找到
config.devtool = isProd ? 'cheap-module-source-map' : 'cheap-module-eval-source-map'
替换为
config.devtool = isProd ? 'source-map' : 'cheap-module-eval-source-map'
这里isProd您可以根据环境变量触发
例如:
const isProd = true
这样source map和您的目标代码就分离了 体积就会小很多
from eeducation.
好的,尝试了,现在打完包那个文件是4.8M了,小了很多了。谢谢
from eeducation.
Related Issues (20)
- ReferenceError: self is not defined HOT 4
- S3 instead of Alibaba Cloud Object Storage Service HOT 2
- Files uploaded not showing on whiteboard HOT 6
- 有eEducation server 端的demo吗? HOT 8
- If the user close the browser directly, how can I force the client leave the channel?
- education_web正常运行起来后上传图片不显示,npm run build 打包后index.html为空白文件 HOT 16
- 运行npm run dev本地测试时显示登陆失败 HOT 2
- 关于服务器地址配置 HOT 5
- Not able to deploy the project on Google app engine over GCP HOT 1
- Internal Server Error | Code 500 HOT 8
- Web Screen Sharing will stop after some time HOT 3
- Please setting herewhite token in console ? Dashborad can't jion HOT 1
- How can I set the aggregate resolution of my video below 1280 × 720? HOT 2
- Keep the client video size ratio same as the broadcasting side video size. HOT 8
- Web demo: max hosts hardcoded to 1 for big-classroom/lecture-hall? HOT 1
- how can I set file upload location in white board? HOT 5
- How to Bypass the Landing Page and Directly Start Class. (eEducation Web) HOT 1
- <--- Last few GCs ---> [56906:0x1b169f0] 50347 ms: Mark-sweep 1382.4 (1424.4) -> 1382.3 (1424.9) MB, 642.1 / 0.0 ms (average mu = 0.103, current mu = 0.008) allocation failure scavenge might not succeed [56906:0x1b169f0] 50977 ms: Mark-sweep 1383.2 (1424.9) -> 1383.1 (1426.4) MB, 628.8 / 0.0 ms (average mu = 0.055, current mu = 0.002) allocation failure scavenge might not succeed <--- JS stacktrace ---> HOT 4
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory HOT 2
- Audio only whiteboard 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 eeducation.