Skip to content

Commit

Permalink
removed lib config
Browse files Browse the repository at this point in the history
  • Loading branch information
suterma committed Sep 8, 2022
1 parent d4b6a70 commit 6d4b2e7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 31 deletions.
12 changes: 0 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
{
"name": "vue-peaks",
"type": "module",
"files": [
"dist"
],
"main": "./dist/vue-peaks.umd.cjs",
"module": "./dist/vue-peaks.js",
"exports": {
".": {
"import": "./dist/vue-peaks.js",
"require": "./dist/vue-peaks.umd.cjs"
}
},
"version": "0.0.4",
"description": "A Vue wrapper around the bbc/peaks.js audio waveform UI component",
"repository": {
Expand Down
7 changes: 0 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import UsingSlots from './examples/UsingSlots.vue';
import UsingPeaksConfiguration from './examples/UsingPeaksConfiguration.vue';
import DemoWidget from './examples/DemoWidget.vue';
import UsingReactivity from './examples/UsingReactivity.vue';
import ExamplesVersion004 from './examples/ExamplesVersion004.vue';
</script>

<template>
Expand Down Expand Up @@ -57,12 +56,6 @@ import ExamplesVersion004 from './examples/ExamplesVersion004.vue';
<article class="example">
<DemoWidget />
</article>

<!-- <div style="border:1px solid red;">
OLD EXAMPLES
<ExamplesVersion004 />
</div> -->

<hr />
<div>
<p><a href="https://github.com/suterma/vue-peaks">vue-peaks</a> is created with love
Expand Down
29 changes: 17 additions & 12 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,29 @@ export default defineConfig({
/* path /vue-peaks/ is suitable for publishing to github pages */
base: '/vue-peaks/',
build: {
/* Defining the assets to distribute for "Library Mode" */
/* Defining the options for "App Mode" */
rollupOptions: {
external: [/^.*(.mp3)/, /^.*(.ogg)/],
},

/* Defining the assets to distribute and the options for "Library Mode" */
// lib: {
// entry: resolve(__dirname, 'lib/main.js'),
// name: 'vue-peaks',
// // the proper extensions will be added
// fileName: 'vue-peaks',
// },
rollupOptions: {
external: ['vue', 'peaks.js', /^.*(.mp3)/, /^.*(.ogg)/],
output: {
// Provide global variables to use in the UMD build
// for externalized deps (in "Library Mode")
globals: {
vue: 'Vue',
'peaks.js': 'PeaksJs',
},
},
},
// rollupOptions: {
// external: ['vue', 'peaks.js', /^.*(.mp3)/, /^.*(.ogg)/],
// output: {
// // Provide global variables to use in the UMD build
// // for externalized deps (in "Library Mode")
// globals: {
// vue: 'Vue',
// 'peaks.js': 'PeaksJs',
// },
// },
// },
manifest: true,
sourcemap: true,
},
Expand Down

0 comments on commit 6d4b2e7

Please sign in to comment.