I am using Vue cli. So I created my app with Vue cli. Then I added morphSVGplugin.js to "node_modules/gsap/src/uncompressed" directory.
Yes I put morphSVGplugin to node_modules maybe 2 month ago. I don't think greensock had any new updates.
I import morphSVGplugin in app.vue
import "gsap/src/uncompressed/plugins/MorphSVGPlugin";
This is my pacakge.json
{
"name": "client",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.19.0",
"core-js": "^2.6.5",
"gsap": "^2.1.3",
"vee-validate": "^2.2.11",
"vue": "^2.6.10",
"vue-carousel": "^0.18.0",
"vue-router": "^3.0.3",
"vuex": "^3.0.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.8.0",
"@vue/cli-plugin-eslint": "^3.8.0",
"@vue/cli-service": "^3.8.0",
"@vue/eslint-config-airbnb": "^4.0.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.9.0",
"sass-loader": "^7.1.0",
"vue-template-compiler": "^2.6.10"
}
}
If I run my app with the command "npm run serve" the plugin works fine.
Problem is when I built _dist directory and try run app via this directory.
Sorry I am not very familiar with webpack.
Could you give me some advice?
Thanks.
Simon