Last active
February 22, 2018 03:14
-
-
Save jdanielcmedina/b1644eb9a09821f4e5022f5c8b324fde to your computer and use it in GitHub Desktop.
vuejs title problem with webpack/uglify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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