Skip to content

Commit ab72df9

Browse files
dekadeka
andauthored
fix: css import issue (#31)
Co-authored-by: deka <[email protected]>
1 parent c81b138 commit ab72df9

File tree

8 files changed

+9
-14
lines changed

8 files changed

+9
-14
lines changed

dist/index-07e64984.mjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-d3-network-graph.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ const dn = 0.1, pn = 0.1, _n = -300, wn = 25, mn = 12, Mn = 1, Nn = 45, Sn = (t)
13221322
});
13231323
const Kn = {
13241324
install(t) {
1325-
import("./index-07e64984.mjs"), t.component("D3NetworkGraph", Gn);
1325+
t.component("D3NetworkGraph", Gn);
13261326
}
13271327
};
13281328
export {

dist/vue-d3-network-graph.umd.js

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ npm install vue-d3-network-graph@beta
3131
### Install the plugin
3232

3333
```javascript
34+
import "vue-d3-network-graph/dist/style.css";
3435
import plugin from "vue-d3-network-graph";
3536
import { createApp } from "vue";
3637

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-d3-network-graph",
3-
"version": "1.0.0-beta.1",
3+
"version": "1.0.0-beta.2",
44
"description": "Vue component to graph networks using d3-force",
55
"author": "Deka",
66
"license": "MIT",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Plugin, App } from "vue";
2+
import "./themes/index.scss";
23

34
import type {
45
D3Link,
@@ -33,7 +34,6 @@ export { D3NetworkGraph };
3334
/** @ignore */
3435
export default {
3536
install(app: App) {
36-
import("./themes/index.scss");
3737
app.component("D3NetworkGraph", D3NetworkGraph);
3838
},
3939
} as Plugin;

vite.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig({
2525
build: {
2626
lib: {
2727
// Could also be a dictionary or array of multiple entry points
28-
entry: resolve(__dirname, "src/index.ts"),
28+
entry: [resolve(__dirname, "src/index.ts")],
2929
name: "vue-d3-network-graph",
3030
// the proper extensions will be added
3131
fileName: "vue-d3-network-graph",

0 commit comments

Comments
 (0)