Skip to content

Commit

Permalink
Generate better bundle names
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Oct 8, 2024
1 parent 42ee896 commit 2fa1528
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bundle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<title>Svelte Component</title>

<!-- Import the generated bundle -->
<script src="bundle.js"></script>
<script src="easydb.js"></script>

<!-- Ensure that our CSS is loaded into the shadow DOM of our component -->
<script>
Expand All @@ -17,7 +17,7 @@
link.setAttribute("rel", "stylesheet");
link.setAttribute(
"href",
"bundle.css"
"easydb.css"
);
ele.shadowRoot.appendChild(link);
}, 0);
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { sveltePreprocess } from 'svelte-preprocess';
export default {
input: './src/bundle.js',
output: {
file: 'bundle/bundle.js',
file: 'bundle/easydb.js',
format: 'iife',
name: 'EasyDBDetailView',
inlineDynamicImports: true
Expand All @@ -33,7 +33,7 @@ export default {
}
}),
postcss({
extract: "bundle.css"
extract: "easydb.css"
}),
resolve({
browser: true,
Expand Down

0 comments on commit 2fa1528

Please sign in to comment.