jade-react-loader icon indicating copy to clipboard operation
jade-react-loader copied to clipboard

Seems to ignore `context`

Open jmatsushita opened this issue 9 years ago • 1 comments

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.

jmatsushita avatar Jul 06 '16 13:07 jmatsushita

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

halhenke avatar Jul 22 '16 13:07 halhenke