Skip to content

Instantly share code, notes, and snippets.

@jdanielcmedina
Last active February 22, 2018 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdanielcmedina/b1644eb9a09821f4e5022f5c8b324fde to your computer and use it in GitHub Desktop.
Save jdanielcmedina/b1644eb9a09821f4e5022f5c8b324fde to your computer and use it in GitHub Desktop.
vuejs title problem with webpack/uglify
# if you have get error on webpack/uglify with this
router.beforeEach((to, from, next) => {
document.title = to.meta.title
next()
})
# change with this
router.beforeEach(function(to, from, next){
document.title = to.meta.title
next()
})
the problem is because this "=>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment