How to pass variable from jade-loader to a jade template file?
<p>I want to pass my data-object to jade files, but but it is impossible
My <code>jade-loader</code>:</p>

<pre><code>{
   test: /\.jade$/,
   loader: "jade",
   query: {
      pretty: true,
      locals: {
          name: "Georg"
    }
}
</code></pre>

<p>}</p>

<p><code>plugins</code>:</p>

<pre><code>plugins: [
    new HtmlWebpackPlugin({
       filename: "index.html",
       template: "./src/jade/index.jade"
})]
</code></pre>

<p><code>index.jade</code>:</p>

<pre><code>span=locals.name
</code></pre>

<p>I run webpack and I get this <code>index.html</code>:</p>

<pre><code>&lt;span&gt;&lt;/span&gt;
</code></pre>

<p>My variable <code>name</code> don't pass. Why? How to fix it?</p>