0👍
✅
You’ll have to make use of one of the JS parsers to do this. You’ll probably also have to integrate it with vue-loader
in order to extract the script block.
Source:stackexchange.com