mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
use react-hot-loader/webpack (#338)
This commit is contained in:
parent
5c64041dd7
commit
9990a5fc78
|
@ -84,6 +84,10 @@ export default async function createCompiler (dir, { hotReload = false, dev = fa
|
|||
join(dir, 'pages'),
|
||||
nextPagesDir
|
||||
]
|
||||
}, {
|
||||
test: /\.js$/,
|
||||
loader: 'react-hot-loader/webpack',
|
||||
exclude: /node_modules/
|
||||
}] : [])
|
||||
.concat([{
|
||||
test: /\.json$/,
|
||||
|
|
Loading…
Reference in a new issue