Closed
Description
How to pass locals via this loader?
I need to pass object with functions, so key/value is not an option.
I've configuered loader in this way:
{ test: /\.jade$/, loader: 'raw-loader!jade-html-loader' },
So i looking for how to pass object into it. For example:
{ test: /\.jade$/, loader: 'raw-loader!jade-html-loader?locals=jadeLocals' },
//then somewehere in wepack config:
{
jadeLocals: require('myObjectWithFunctions')
}
Metadata
Metadata
Assignees
Labels
No labels