In webpack I used HtmlWebpackPlugin, which I could tell which HTML template I'd like to use. I wonder how can I achieve this same result using Vite.
The objective is to use React CDN in production (build), but I don't want to use it in development.
I had something like this in my webpack config:
const { merge } = require('webpack-merge')
const common = require('./webpack.common')
module.exports = merge(common, {
mode: 'development',
plugins: [
new HtmlWebpackPlugin({
template: './public/template.dev.html'
})
]
})