jade-react-loader
jade-react-loader copied to clipboard
Seems to ignore `context`
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.
Hi @jmatsushita - will try to look into it this weekend. Also update to React v15 etc