Skip to content

Commit

Permalink
css添加scope,打包进js
Browse files Browse the repository at this point in the history
  • Loading branch information
shalldie committed Mar 4, 2023
1 parent 62ba23b commit 375eaf9
Show file tree
Hide file tree
Showing 16 changed files with 2,547 additions and 1,416 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
/dist/demo.html
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ link:
```html
<script src="lib/vue.js"></script>

<link href="dist/vue-git-comment.css" rel="stylesheet" />
<script src="dist/vue-git-comment.umd.min.js"></script>
```

Expand All @@ -31,7 +30,6 @@ npm install vue-git-comment --save
## Usage

```js
import 'vue-git-comment/dist/vue-git-comment.css';
import VueGitComment from 'vue-git-comment';

// var VueGitComment = window.VueGitComment; // window
Expand Down
1,005 changes: 785 additions & 220 deletions dist/vue-git-comment.common.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/vue-git-comment.css

This file was deleted.

1,005 changes: 785 additions & 220 deletions dist/vue-git-comment.umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/vue-git-comment.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-git-comment",
"version": "0.0.16",
"version": "0.1.0",
"description": "A vue's comment component base on github's issues.",
"main": "dist/vue-git-comment.umd.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/VueGitComment/VueGitComment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class VueGitComment extends BaseComponent {
.vue-git-comment {
color: #333;
font-family: sans-serif;
/* font-family: sans-serif; */
// 全局 border-box
* {
Expand Down
2 changes: 1 addition & 1 deletion src/VueGitComment/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '~/assets/styles/github-markdown.css';
import '~/assets/styles/github-markdown.scss';
import VueGitComment from './VueGitComment.vue';

VueGitComment['install'] = Vue => {
Expand Down
Loading

0 comments on commit 375eaf9

Please sign in to comment.