From 692b21859df0fc9ba985e3bde32a215361b9d5a8 Mon Sep 17 00:00:00 2001 From: Wayann Date: Thu, 17 Nov 2016 23:07:30 +0100 Subject: [PATCH] misleading webpack.config if you follow the lesson and copy the path param in the webpack config snippet code // webpack.config.js output: { path: 'public', .... } that will install bundle.js in the public dir but index.html is not yet there, so when you run the browser, it will replace bundle.js with index.html and it will output a weird error: SyntaxError: Unexpected token '<' for a noob like me took me a while to figure it out... --- lessons/11-productionish-server/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/lessons/11-productionish-server/README.md b/lessons/11-productionish-server/README.md index 30582eba..17656c08 100644 --- a/lessons/11-productionish-server/README.md +++ b/lessons/11-productionish-server/README.md @@ -31,7 +31,6 @@ In the root directly, go open up `webpack.config.js` and add the publicPath '/' ``` // webpack.config.js output: { - path: 'public', filename: 'bundle.js', publicPath: '/' },