Skip to content

Commit 91080a0

Browse files
committed
Updates
1 parent 7890c4f commit 91080a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Javascript Framework",
55
"main": "dist/index.js",
66
"scripts": {
7-
"serve": "rm -fr dist && install -d dist && esbuild src/index.html src/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy --watch --serve",
8-
"build": "rm -fr dist && install -d dist && esbuild src/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy",
7+
"serve": "rm -fr dist && install -d dist && esbuild src/index.html src/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file --loader:.html=copy --watch --serve",
8+
"build": "rm -fr dist && install -d dist && esbuild src/index.js --outdir=dist --format=esm --sourcemap --minify --bundle --loader:.svg=file --loader:.woff=file --loader:.woff2=file --loader:.ttf=file --loader:.otf=file",
99
"lint": "eslint -c config/eslint.config.mjs src/*.js",
1010
"docs": "jsdoc -c config/jsdoc.config.json"
1111
},

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Storybook</title>
8-
<script type="module" src="./index.js" defer></script>
9-
<link href="./index.css" rel="stylesheet">
8+
<script type="module" src="index.js" defer></script>
9+
<link href="index.css" rel="stylesheet">
1010
</head>
1111

1212
<body>

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import './component/button/ButtonGroupElement';
1111
import './component/button/CloseButtonElement';
1212

1313
// Badges
14-
import './component/badge/BadgeElement';
14+
import { BadgeElement } from './component/badge/BadgeElement';
1515
import './component/badge/BadgeGroupElement';
1616

1717
customElements.define(BadgeElement.localName, BadgeElement); // wc-badge
@@ -57,5 +57,5 @@ import './css/document.css';
5757

5858
// Other
5959
import './esbuild.js';
60-
import './test.js'; import { BadgeElement } from './component/badge/BadgeElement';
60+
import './test.js';
6161

0 commit comments

Comments
 (0)