Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Config does not seem to be read #7

Open
zepp133 opened this issue May 6, 2018 · 0 comments
Open

Config does not seem to be read #7

zepp133 opened this issue May 6, 2018 · 0 comments

Comments

@zepp133
Copy link

zepp133 commented May 6, 2018

In my project, I have two folders where I put templates: ./templates/ and ./static/templates/.

.
├── brunch-config.js
├── node_modules
├── package.json
├── package-lock.json
├── public
├── static
│   ├── assets
│   ├── js
│   ├── scss
│   └── templates
└── templates

I would like nunjucks-brunch to only process the templates in ./static/templates/, therefore I configured it in the following way in ./brunch-config.js:

module.exports = {
  (…)
  plugins: {
    nunjucks: {
      templatePath: 'static/templates'
    }
  }
  (…)
}

Unfortunately, nunjucks-brunch will still pick up the templates in ./templates/. What am I doing wrong?

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

No branches or pull requests

1 participant