vue.2.6.14 , “compression-webpack-plugin”: “^10.0.0”, I configure like this in compression-webpack-plugin"; externals: ‘three’:’THREE‘,and then its failed,like this pic
Why use online CDN when you already use webpack tho ? Why not just npm i -D three
Yes, I installed three in dev, but when I package it, three will still be packaged together, and I use pnpm. I don’t know if this is the reason,
I read the information, and I found that if you don’t use webpack, it will be automatically packaged into your project. I need to use cdn, so I need to ignore the source code of threejs after executing the build command