survivejs / react-book

From apprentice to master (CC BY-NC-ND)
https://survivejs.com/react/introduction/
2.02k stars 366 forks source link

Chapter 9.3 Configuring webpack : style entry for tests is crashing #392

Closed tcharlat closed 8 years ago

tcharlat commented 8 years ago

I would submit a PR but the chapter is hidden.

const common = {
  entry: {
    app: PATHS.app,
    style: PATHS.style
  },

Typo, I guess, style entry is redundantly added in common and in start / build.

It leads to the following :

ERROR in ./app/main.css
Module parse failed: /src/app/main.css Unexpected token (1:5)
You may need an appropriate loader to handle this file type.
bebraw commented 8 years ago

Thanks! I'll get this sorted out.

tcharlat commented 8 years ago

it is fixed with :

const common = {
  entry: {
    app: PATHS.app
  },
bebraw commented 8 years ago

Yeah, I'll leave this open till fixed. 👍

bebraw commented 8 years ago

Fixed at the dev version. I hope to get a stable version out soon. 👍