Skip to content

Commit

Permalink
fix(vite): update config entry file
Browse files Browse the repository at this point in the history
  • Loading branch information
luqven committed May 9, 2023
1 parent 2280d04 commit bd24b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const minify = process.argv.includes('--minify');
const libConfig = {
minified: {
formats: ['es'],
entry: path.resolve(__dirname, 'src/main.ts'),
entry: path.resolve(__dirname, 'src/plugins/imgix-vue/index.ts'),
name: 'imgix-vue',
fileName: () => 'imgix-vue.min.js',
},
default: {
formats: ['es', 'umd'],
entry: path.resolve(__dirname, 'src/main.ts'),
entry: path.resolve(__dirname, 'src/plugins/imgix-vue/index.ts'),
name: 'imgix-vue',
fileName: (format) => {
if (format === 'es') {
Expand Down

0 comments on commit bd24b55

Please sign in to comment.