Skip to content

Instantly share code, notes, and snippets.

View rinodrummer's full-sized avatar
🐗

Gennaro Landolfi rinodrummer

🐗
View GitHub Profile
@rinodrummer
rinodrummer / vite.config.js
Created October 7, 2020 10:04
Vite configuration
const path = require('path');
// https://github.com/vitejs/vite/issues/785#issuecomment-689064551
const vitePath = require.resolve('vite', require.main);
const resolverPath = path.join(path.dirname(vitePath), 'resolver');
const { supportedExts } = require(resolverPath);
if (!supportedExts.includes('.vue')) {
supportedExts.push('.vue');
}