vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Add locals object in pug render function #182

Open Jerffersonferreira opened 7 years ago

Jerffersonferreira commented 7 years ago

This PR is going to solve this issue: https://github.com/vuejs/vueify/issues/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/'
    }
  }
};