I want to pass my data-object to jade files, but but it is impossible
My jade-loader
:
{
test: /\.jade$/,
loader: "jade",
query: {
pretty: true,
locals: {
name: "Georg"
}
}
}
plugins
:
plugins: [
new HtmlWebpackPlugin({
filename: "index.html",
template: "./src/jade/index.jade"
})]
index.jade
:
span=locals.name
I run webpack and I get this index.html
:
<span></span>
My variable name
don't pass. Why? How to fix it?