Skip to content

Commit c698b32

Browse files
committed
Merge branch 'master' into fix/meta
2 parents 10105dc + 333eb95 commit c698b32

File tree

5 files changed

+12
-25
lines changed

5 files changed

+12
-25
lines changed

Readme.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# next.js
1+
<img width="112" alt="screen shot 2016-10-25 at 2 37 27 pm" src="https://cloud.githubusercontent.com/assets/13041/19686250/971bf7f8-9ac0-11e6-975c-188defd82df1.png">
22

33
Next.js is a minimalistic framework for server-rendered React applications.
44

@@ -50,23 +50,21 @@ We use [glamor](https://github.com/threepointone/glamor) to provide a great buil
5050

5151
```jsx
5252
import React from 'react'
53-
import style from 'next/css'
53+
import css from 'next/css'
5454

5555
export default () => (
5656
<div className={style}>
5757
Hello world
5858
</div>
5959
)
6060

61-
const style = style({
62-
main: {
63-
background: 'red',
64-
':hover': {
65-
background: 'gray'
66-
}
67-
'@media (max-width: 600px)': {
68-
background: 'blue'
69-
}
61+
const style = css({
62+
background: 'red',
63+
':hover': {
64+
background: 'gray'
65+
},
66+
'@media (max-width: 600px)': {
67+
background: 'blue'
7068
}
7169
})
7270
```

bin/next-dev

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env node
2-
import { exec } from 'child_process'
32
import { resolve, join } from 'path'
43
import parseArgs from 'minimist'
54
import { exists } from 'mz/fs'
@@ -17,12 +16,6 @@ const argv = parseArgs(process.argv.slice(2), {
1716
}
1817
})
1918

20-
const open = url => {
21-
const openers = { darwin: 'open', win32: 'start' }
22-
const cmdName = openers[process.platform] || 'xdg-open'
23-
exec(`${cmdName} ${url}`)
24-
}
25-
2619
const dir = resolve(argv._[0] || '.')
2720

2821
clean(dir)
@@ -39,10 +32,6 @@ clean(dir)
3932
console.warn('> Couldn\'t find a `pages` directory. Please create one under the project root')
4033
}
4134
}
42-
43-
if (!/^(false|0)$/i.test(process.env.NEXT_OPEN_BROWSER)) {
44-
open(`http://localhost:${argv.port}`)
45-
}
4635
})
4736
.catch((err) => {
4837
console.error(err)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next",
3-
"version": "0.9.9",
3+
"version": "0.9.11",
44
"description": "Next.js is a minimalistic framework for server-rendered React applications",
55
"main": "./dist/lib/index.js",
66
"homepage": "https://github.com/zeit/next.js",

server/build/plugins/watch-pages-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class WatchPagesPlugin {
2626
const name = getEntryName(f)
2727
if (compiler.hasEntry(name)) return
2828

29-
const entries = ['webpack/hot/only-dev-server', f]
29+
const entries = ['webpack/hot/dev-server', f]
3030
compiler.addEntry(entries, name)
3131
})
3232

server/build/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default async function createCompiler (dir, { hotReload = false } = {}) {
1313
const pages = await glob('pages/**/*.js', { cwd: dir })
1414

1515
const entry = {}
16-
const defaultEntries = hotReload ? ['webpack/hot/only-dev-server'] : []
16+
const defaultEntries = hotReload ? ['webpack/hot/dev-server'] : []
1717
for (const p of pages) {
1818
entry[join('bundles', p)] = defaultEntries.concat(['./' + p])
1919
}

0 commit comments

Comments
 (0)