Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems to ignore context #4

Open
jmatsushita opened this issue Jul 6, 2016 · 1 comment
Open

Seems to ignore context #4

jmatsushita opened this issue Jul 6, 2016 · 1 comment

Comments

@jmatsushita
Copy link

The loader seems to not take into account the context webpack key.

If I do this with my all my code in the client folder:

module.exports = {
  context: path.join(__dirname, '/client'),
  module: {
    loaders: [
      {
        test: /\.jade$/,
        include: path.resolve(__dirname, "src"),
        loader: 'jade-react'
      }
    ]
  }

Then the files don't get picked up and I have errors of the type:

You may need an appropriate loader to handle this file type.

If I change the above to

module.exports = {
  context: path.join(__dirname, '/client'),
  module: {
    loaders: [
      {
        test: /\.jade$/,
        include: path.resolve(__dirname, "client/src"),
        loader: 'jade-react'
      }
    ]
  }

Then things work.

@halhenke
Copy link
Owner

Hi @jmatsushita - will try to look into it this weekend. Also update to React v15 etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants