Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

misleading webpack.config snippet code #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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...
  • Loading branch information
wayann authored Nov 17, 2016
commit 692b21859df0fc9ba985e3bde32a215361b9d5a8
1 change: 0 additions & 1 deletion lessons/11-productionish-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: '/'
},
Expand Down