Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_spikeExtension does not work with pug-static-loader #282

Open
NikitaVlaznev opened this issue Sep 4, 2018 · 1 comment
Open

_spikeExtension does not work with pug-static-loader #282

NikitaVlaznev opened this issue Sep 4, 2018 · 1 comment

Comments

@NikitaVlaznev
Copy link

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.

@jescalan
Copy link
Member

jescalan commented Sep 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants