-1๐
1.Copy all content of this url insaid you custom module
/Custom/Module/view/frontend/web/js/vue.js
2.Configure requirejs-config.js
/Custom/Module/view/frontend/requirejs-config.js
var config = {
map: {
'*': {
vue: 'Custom_Module/js/vue'>
}
} };
3.And to use it:
define([
'jquery',
'vue'
], function ($, Vue) {
"use strict";
// code...
});
- [Vuejs]-Vuejs include javascript library in spa
- [Vuejs]-How to add an uploaded file to a list of already uploaded files in Vue?
Source:stackexchange.com