Skip to content

mostlyserious/vitepack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

39 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Vitepack

Default vite.config.js

import vitepack from '@mostlyserious/vitepack';
// import realFavicon from '@mostlyserious/vitepack/plugin/real-favicon';

const args = {
    base: '/static/',
    outDir: 'web/static'
};

export default vitepack(args, config => {
    config.build.rollupOptions = {
        input: [
            'src/js/main.js',
            'src/js/cp.js'
        ]
    };

    config.resolve.alias['@icons'] = '/web/icons';

    // config.plugins.unshift(realFavicon({
    //     input: 'src/favicon/config.json'
    // }));

    return config;
});

About

๐Ÿ”„ Reasonable Vite config boilerplate.

Resources

Stars

Watchers

Forks

Packages

No packages published