-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1, enables HMR. Style HMR is not supported in Webpack 4 yet, …
…but MiniCssExtractPlugin has plan to support it. See webpack-contrib/mini-css-extract-plugin#34
- Loading branch information
1 parent
4544407
commit 178e6d5
Showing
4 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
import app from './routes' | ||
|
||
app.use((state, emitter) => { | ||
state.count = 0 | ||
}) | ||
|
||
app.mount('body') | ||
|
||
if (module.hot) { | ||
module.hot.accept() | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,11 @@ | |
"prod": "NODE_ENV=production node ./server/prod.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": ["choo", "ssr", "express"], | ||
"keywords": [ | ||
"choo", | ||
"ssr", | ||
"express" | ||
], | ||
"author": "Poyu Chen <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
|
@@ -27,7 +31,7 @@ | |
"babel-loader": "^7.1.4", | ||
"babel-preset-env": "^1.7.0", | ||
"css-loader": "^0.28.11", | ||
"extract-text-webpack-plugin": "^4.0.0-beta.0", | ||
"mini-css-extract-plugin": "^0.4.0", | ||
"val-loader": "^1.1.0", | ||
"webpack": "^4.12.0", | ||
"webpack-cli": "^3.0.6", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters