Skip to content

Instantly share code, notes, and snippets.

@frandiox
Created March 30, 2022 01:22
Show Gist options
  • Save frandiox/8a4d0ddbfcc1ccd29f829d7a4b3574e0 to your computer and use it in GitHub Desktop.
Save frandiox/8a4d0ddbfcc1ccd29f829d7a4b3574e0 to your computer and use it in GitHub Desktop.
Adding Hydrogen plugin to Vite config
import {defineConfig} from 'vite';
import hydrogen from '@shopify/hydrogen/plugin';
import shopifyConfig from './shopify.config';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [hydrogen(shopifyConfig)],
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment