You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`next(path: string, opts: objecvt)` - `path` is where the Next project is located
313
+
-`next(path: string, opts: objecvt)` - `path` is
312
314
-`next(opts: object)`
313
315
314
316
Supported options:
315
-
-`dev` (`bool`) whether to launch Next.js in dev mode
317
+
-`dev` (`bool`) whether to launch Next.js in dev mode - default `false`
318
+
-`dir` (`string`) where the Next project is located - default `'.'`
319
+
-`quiet` (`bool`) Display error messages with server information - default `false`
316
320
317
321
### Custom `<Document>`
318
322
@@ -441,11 +445,8 @@ Note: we recommend putting `.next` in `.npmignore` or `.gitignore`. Otherwise, u
441
445
<details>
442
446
<summary>How big is it?</summary>
443
447
444
-
The client side next bundle, which includes React and Glamor is **73kb** gzipped.
445
-
446
-
The Next runtime (lazy loading, routing, `<Head>`) contributes around **15%** to the size of that bundle.
447
-
448
-
The codebase is ~1500LOC (excluding CLI programs).
448
+
The client side bundle size should be measured in a per-app basis.
449
+
A small Next main bundle is around 65kb gzipped.
449
450
450
451
</details>
451
452
@@ -470,15 +471,10 @@ If you want to create re-usable React components that you can embed in your Next
470
471
</details>
471
472
472
473
<details>
473
-
<summary>Why CSS-in-JS?</summary>
474
-
475
-
`next/css` is powered by [Glamor](https://github.com/threepointone/glamor). While it exposes a JavaScript API, it produces regular CSS and therefore important features like `:hover`, animations, media queries all work.
476
-
477
-
There’s *no tradeoff* in power. Instead, we gain the power of simpler composition and usage of JavaScript expressions.
474
+
<summary>How do I use CSS-in-JS solutions</summary>
478
475
479
-
*Compiling* regular CSS files would be counter-productive to some of our goals. Some of these are listed below.
476
+
Next.js bundles [styled-jsx](https://github.com/zeit/styled-jsx) supporting scoped css. However you can use a CSS-in-JS solution in your Next app by just including your favorite library [as mentioned before](#css-in-js) in the document.
480
477
481
-
**Please note**: we are very interested in supporting regular CSS, since it's so much easier to write and already familiar. To that end, we're currently exploring the possibility of leveraging Shadow DOM to avoid the entire CSS parsing and mangling step [[#22](https://github.com/zeit/next.js/issues/22)]
482
478
483
479
### Compilation performance
484
480
@@ -538,9 +534,9 @@ We tested the flexibility of the routing with some interesting scenarios. For an
538
534
<details>
539
535
<summary>How do I define a custom fancy route?</summary>
540
536
541
-
We’re adding the ability to map between an arbitrary URL and any component by supplying a request handler: [#25](https://github.com/zeit/next.js/issues/25)
537
+
We[added](#custom-server-and-routing) the ability to map between an arbitrary URL and any component by supplying a request handler.
542
538
543
-
On the client side, we'll add a parameter to `<Link>`so that it_decorates_ the URL differently from the URL it _fetches_.
539
+
On the client side, we have a parameter call `as` on `<Link>` that _decorates_ the URL differently from the URL it _fetches_.
0 commit comments