I am currently in the process of developing an application using Vue 2 and webpack. In my current setup, I am only publishing a '.js' file to a remote directory, which is then loaded from a Sharepoint page. Now, I am attempting to transition to Vue 3, but I am facing challenges with publishing just the js file and loading it from a Sharepoint page.
Here is my old webpack configuration for Vue 2:
var path = require('path')
var webpack = require('webpack')
// Rest of the webpack config goes here...
Below is a fragment from my package.json file for Vue 2:
"scripts": {
// Dev and build scripts defined here
}
And now, here is my vue.config.js configuration for Vue 3:
const { defineConfig } = require('@vue/cli-service')
// Vue 3 webpack configuration goes here...
Lastly, here is my package.json file for Vue 3:
"scripts": {
// Build, dev, and serve commands defined here
}
If anyone has any insights or solutions to my migration issues, your help would be greatly appreciated. Thank you in advance!