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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Google Web Starter Kit

255 点作者 lin0tune将近 8 年前

11 条评论

TheAceOfHearts将近 8 年前
I&#x27;d advocate most people avoid this if their intention is to write an app. As an alternative, I&#x27;d suggest evaluating create-react-app [0] or preact-cli [1] if you&#x27;re looking for something lighter. The lack of testing setup and module support in this kit feels like a regression, although I&#x27;ll concede that it really depends on your use-case.<p>I&#x27;ve been using webpack [2] for a few years and wouldn&#x27;t willingly go back to this style of writing web apps. Once you learn how to use it, the world is your oyster. You can write a loader or plugin to achieve pretty much any kind of requirement that comes your way.<p>Consider replacing sass with cssnext [3], or even directly using postcss along with the few plugins you need. As an example, you can use native css variables during development and compile em away for production. Another great addition is the :matches selector, which makes for much cleaner selectors in certain cases. I never really found much value in most other sass features.<p>Instead of running imagemin as part of your build process, consider installing imagemin-cli [4] and applying optimizations before checking in images. That way it only has to done once, regardless of how many times someone checks-out your repo.<p>Even if you enable ES2015 compilation with babel, you don&#x27;t get any polyfills. That means trying to use standard ES2015 globals like Map, Set, or Promise will not work on older browsers. If you&#x27;re gonna tell people they can add ES2015 support by changing a single line, it would seem prudent to mention this gotcha.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;facebookincubator&#x2F;create-react-app" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebookincubator&#x2F;create-react-app</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;developit&#x2F;preact-cli" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;developit&#x2F;preact-cli</a><p>[2] <a href="https:&#x2F;&#x2F;webpack.js.org" rel="nofollow">https:&#x2F;&#x2F;webpack.js.org</a><p>[3] <a href="http:&#x2F;&#x2F;cssnext.io" rel="nofollow">http:&#x2F;&#x2F;cssnext.io</a><p>[4] <a href="https:&#x2F;&#x2F;github.com&#x2F;imagemin&#x2F;imagemin-cli" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;imagemin&#x2F;imagemin-cli</a>
评论 #14631279 未加载
评论 #14630914 未加载
评论 #14632812 未加载
评论 #14631407 未加载
评论 #14634704 未加载
tauntz将近 8 年前
&gt; Powered by Material Design Lite<p>That&#x27;s a curious choice. MDL isn&#x27;t being developed further and is being replaced by <i>&quot;Material Components for the web&quot;</i> <a href="https:&#x2F;&#x2F;github.com&#x2F;material-components&#x2F;material-components-web" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;material-components&#x2F;material-components-w...</a><p>From <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;material-design-lite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;material-design-lite</a>:<p><pre><code> Limited support Material Design Lite is now in limited support, with development having moved to the Material Components for the web repository. No further development is taking place in MDL by the core team, but we are happy to review PRs, fix critical bugs and push out new releases. No breaking changes will be accepted.</code></pre>
评论 #14630556 未加载
philtar将近 8 年前
Looking at this page, and reading the comments here on HN, I&#x27;m glad I&#x27;m not a web developer. What a mess.
评论 #14630255 未加载
评论 #14630923 未加载
FabianBeiner将近 8 年前
Am I missing something? This thing came out like three years ago. If this is news: EVERYONE, CHECK OUT THIS AMAZING THING CALLED BOOTSTRAP!!1!<p><i>scnr</i>
评论 #14630329 未加载
davedx将近 8 年前
An opinionated Web Starter Kit with no libraries or frameworks included? What is Google&#x27;s opinion on which way to build a web application, roll your own?
评论 #14629892 未加载
评论 #14629872 未加载
mattacular将近 8 年前
Nobody new to web is going to understand this stuff and people who would really understand this advice could already give it themselves. Not sure who the target audience for this is supposed to be but why do we need yet-another-web-boilerplate
andrewstuart将近 8 年前
The right amount of configuration is zero.<p>create-react-app gets it.<p>This does not.
js4all将近 8 年前
Hmm, interestingly I got the foobar challenge when I visited the site.
douchescript将近 8 年前
Gulp, how quaint
评论 #14632111 未加载
评论 #14633589 未加载
ableton将近 8 年前
I&#x27;m glad to see they are using gulp. I know webpack is the hot new technology, but in my limited experience with webpack, gulp is easier to use and is more intuitive. Webpack has a lot of loaders, but I feel like gulp gives more flexibility out of the box. When I want to do something with gulp that I don&#x27;t know how to do, I feel like it is easier to implement with gulp, because gulp seems to be a bit lower level. I noticed that they updated the docs for webpack since I last visited, so maybe I will try again.
xg15将近 8 年前
&gt; <i>.gitignore: node_modules</i><p>Wait, did I miss something? Wasn&#x27;t it google who started the &quot;vendor everything&quot; philosophy in the first place?
评论 #14629777 未加载
评论 #14629766 未加载
评论 #14629771 未加载