TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to Increase Your Page Size by 1,500% with Webpack and Vue

49 点作者 Zweihander将近 6 年前

4 条评论

sparrish将近 6 年前
My favorite quote from the article:<p>&quot;As a side note, the next time you think about refactoring something, don’t. Just leave it alone. If you don’t leave any technical debt for the next generation, they’re going to be extremely bored and that’s going to be on you.&quot;
samspenc将近 6 年前
TL;DR (hopefully I&#x27;m getting this right): the issue was that Vue.js creates scoped styles, and because the Sass styles were imported into every VueJS component, it rendered (and duplicated) the CSS in every component at runtime.
baybal2将近 6 年前
I like Vue, but I don&#x27;t like aggressive webpack+babel pushing.<p>What&#x27;s the use of a module loading&#x2F;splitting script that ends up with net increase of your bundle over non compresses&#x2F;pruned JS <i>every</i> time?
lozenge将近 6 年前
Cute article.