spike-core icon indicating copy to clipboard operation
spike-core copied to clipboard

_spikeExtension does not work with pug-static-loader

Open NikitaVlaznev opened this issue 6 years ago • 1 comments

Having index.pug in views and this in app.js:

module: {
  rules: [{
    test: /\.pug$/,
    use: [{
      loader: 'pug-static-loader',
      options: {
        _spikeExtension: 'html',
        pretty: false,
        locals: { foo: 'bar' }
      }
    }]
  }]
}

leads to getting index.pug in the public folder.

NikitaVlaznev avatar Sep 04 '18 07:09 NikitaVlaznev

Need more info here -- is the file compiling, but its just the extension thats not working? Or is it not compiling at all?

jescalan avatar Sep 04 '18 16:09 jescalan