Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

Add locals object in pug render function #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jerffersonferreira
Copy link

This PR is going to solve this issue: #181
Now it's possible to define variables in vueify config to be used inside a pug template:

// vue.config.js
module.exports = {
  pug: {
    basedir: __dirname,
    data: {
      imageBasePath: 'https://example.com/'
    }
  }
};

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

Successfully merging this pull request may close these issues.

1 participant