Skip to content

Commit

Permalink
fix: css import issue (#31)
Browse files Browse the repository at this point in the history
Co-authored-by: deka <[email protected]>
  • Loading branch information
deka and deka authored Dec 15, 2023
1 parent c81b138 commit ab72df9
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 14 deletions.
5 changes: 0 additions & 5 deletions dist/index-07e64984.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion dist/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/vue-d3-network-graph.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ const dn = 0.1, pn = 0.1, _n = -300, wn = 25, mn = 12, Mn = 1, Nn = 45, Sn = (t)
});
const Kn = {
install(t) {
import("./index-07e64984.mjs"), t.component("D3NetworkGraph", Gn);
t.component("D3NetworkGraph", Gn);
}
};
export {
Expand Down
7 changes: 3 additions & 4 deletions dist/vue-d3-network-graph.umd.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ npm install vue-d3-network-graph@beta
### Install the plugin

```javascript
import "vue-d3-network-graph/dist/style.css";
import plugin from "vue-d3-network-graph";
import { createApp } from "vue";

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-d3-network-graph",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Vue component to graph networks using d3-force",
"author": "Deka",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Plugin, App } from "vue";
import "./themes/index.scss";

import type {
D3Link,
Expand Down Expand Up @@ -33,7 +34,6 @@ export { D3NetworkGraph };
/** @ignore */
export default {
install(app: App) {
import("./themes/index.scss");
app.component("D3NetworkGraph", D3NetworkGraph);
},
} as Plugin;
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default defineConfig({
build: {
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__dirname, "src/index.ts"),
entry: [resolve(__dirname, "src/index.ts")],
name: "vue-d3-network-graph",
// the proper extensions will be added
fileName: "vue-d3-network-graph",
Expand Down

0 comments on commit ab72df9

Please sign in to comment.