Skip to content

Commit

Permalink
Minor README tweaks
Browse files Browse the repository at this point in the history
1. make the ports match
2. fix a typo in the js 
3. link to a repo with a full kevin example
  • Loading branch information
salemhilal authored Jun 18, 2020
1 parent ebac9a1 commit f215108
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const webpackConfigs = require("path/to/webpack.config.js");
const app = express();

const kevin = new Kevin(webpackConfigs, {
kevinPublicPath = "http://localhost:3000"
kevinPublicPath: "http://localhost:3000"
});
app.use(kevin.getMiddleware());

Expand All @@ -51,9 +51,11 @@ app.use(kevin.getMiddleware());
app.use("/ac/webpack/js", express.static(webpackConfigs[0].output.path));

// Let 'er rip
app.listen(9275);
app.listen(3000);
```

For a complete example, check out [this repository][kevin-example].

---

Kevin is initialized with two arguments: your webpack config (or more probably your array
Expand Down Expand Up @@ -226,3 +228,4 @@ at the time.
[webpack]: https://webpack.js.org
[express-middleware]: https://expressjs.com/en/guide/using-middleware.html
[webpack-name]: https://webpack.js.org/configuration/other-options/#name
[kevin-example]: https://github.com/joebeachjoebeach/kevin-example

0 comments on commit f215108

Please sign in to comment.