-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lit-components-test
- Loading branch information
Showing
2 changed files
with
36 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { UserConfigFn, mergeConfig } from 'vite'; | ||
import { useLocalWebComponents, useLitWebComponents } from './web-components-vite-plugin'; | ||
|
||
export const mergeConfigs = (...configs: UserConfigFn[]) => { | ||
return configs.reduce((acc, config) => mergeConfig(acc, config)); | ||
}; | ||
|
||
export const sharedConfig: UserConfigFn = (env) => ({ | ||
plugins: [ | ||
useLitWebComponents() | ||
|
||
// Use local version of web-components, disabled by default. | ||
// To use this, uncomment the lines below and change the path | ||
// to your local web-components folder if needed (absolute or | ||
// relative to this shared config). | ||
// DO NOT COMMIT THESE CHANGES! | ||
// useLocalWebComponents('../../web-components') | ||
] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters