Skip to content

Seems to ignore context #4

@jmatsushita

Description

@jmatsushita

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions