I'm trying to upgrade my Webpack based Vue.js project to Vite. I have folder structure like this:
- src/
- static/
- tests/
In Webpack, I was using CopyWebPackPlugin like this:
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: '',
ignore: ['.*']
}
]),
And copied all files inside the static folder to make it available on both dev and build.
I'd like to do the same via Vite but can't figure out what how to implement it.
I tried the following code but it didn't work.
viteStaticCopy({
targets: [
{
src: path.resolve(__dirname, '../static'),
dest: '/'
}
]
})