vue-masonry: Error when building using Webpack
Hi @shershen08
Thanks for the amazing tool here, and everything works as it should. However, when I tried to bundle everything in Webpack (I used Vue-cli), the below error showed up.
ERROR in static/js/vendor.6534844124b38bd29711.js from UglifyJs
Unexpected token: operator (>) [./node_modules/vue-masonry/src/masonry.plugin.js:19,0][static/js/vendor.6534844124b38bd29711.js:41470,27]
I looked more in details into the above directory, it looks like the following line is causing the problem, but I can’t seem to find out why. Maybe you can discover something I missed here. Thanks.
const stringToBool = val => (val + '').toLowerCase() === 'true'
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (12 by maintainers)
Commits related to this issue
- solution for #26 — committed to shershen08/vue-masonry by shershen08 7 years ago
- reference the right file #26 — committed to shershen08/vue-masonry by shershen08 7 years ago
- README update #26 — committed to shershen08/vue-masonry by shershen08 7 years ago
@pingshunhuangalex you’re totally right. Doing it now. Thanks again for your time helping out with this issue!
I will merge and publish to NPM today.