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

Add locals object in pug render function#182

Open
Jerffersonferreira wants to merge 2 commits intovuejs:masterfrom
Jerffersonferreira:add-locals-object-in-pug-render-function
Open

Add locals object in pug render function#182
Jerffersonferreira wants to merge 2 commits intovuejs:masterfrom
Jerffersonferreira:add-locals-object-in-pug-render-function

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