-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf27c77
commit 4291541
Showing
7 changed files
with
2 additions
and
25 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
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
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
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 |
---|---|---|
@@ -1,23 +1,12 @@ | ||
import { resolve, dirname } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import { defineConfig } from 'vite'; | ||
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
|
||
export default defineConfig({ | ||
plugins: [cssInjectedByJsPlugin()], | ||
build: { | ||
outDir: resolve(__dirname, 'public'), | ||
lib: { | ||
// Could also be a dictionary or array of multiple entry points | ||
entry: resolve(__dirname, 'src/main.js'), | ||
|
||
name: 'Connector Asset Template', | ||
formats: ['es', 'umd'], | ||
// the proper extensions will be added | ||
fileName: (format) => `connector-asset.${format}.js`, | ||
}, | ||
}, | ||
}); |
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
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
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 |
---|---|---|
@@ -1,23 +1,12 @@ | ||
import { resolve, dirname } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import { defineConfig } from 'vite'; | ||
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = dirname(__filename); | ||
|
||
export default defineConfig({ | ||
plugins: [cssInjectedByJsPlugin()], | ||
build: { | ||
outDir: resolve(__dirname, 'public'), | ||
lib: { | ||
// Could also be a dictionary or array of multiple entry points | ||
entry: resolve(__dirname, 'src/main.ts'), | ||
|
||
name: 'Connector Asset Template', | ||
formats: ['es', 'umd'], | ||
// the proper extensions will be added | ||
fileName: (format) => `connector-asset.${format}.js`, | ||
}, | ||
}, | ||
}); |