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

How to use spike-records with pug-static-loader? #5

Open
luminarious opened this issue Sep 20, 2017 · 1 comment
Open

How to use spike-records with pug-static-loader? #5

luminarious opened this issue Sep 20, 2017 · 1 comment

Comments

@luminarious
Copy link

The method written in spike-records fails:

test: /\.pug$/,
      use: [{
        loader: 'pug-static-loader',
        options: {
          pretty: true,
          locals: () => locals
        }
      }]

Error:

ModuleBuildError: Module build failed: ValidationError: child "locals" fails because ["locals" must be an object]
@jescalan
Copy link
Member

locals: locals -- don't pass it as a function, as the error mentions 😁

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