Skip to content

Commit

Permalink
fix: css file export fix
Browse files Browse the repository at this point in the history
  • Loading branch information
selimdoyranli committed Nov 2, 2023
1 parent 5276e38 commit 92f78c8
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 14 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ yarn add v-dropdown-menu # or npm i v-dropdown-menu
import { createApp } from 'vue'
import App from './App.vue'
import DropdownMenu from 'v-dropdown-menu'
import 'v-dropdown-menu/css'

const app = createApp(App)

Expand All @@ -77,7 +78,7 @@ app.mount('#app')
```html
<script setup>
import DropdownMenu from 'v-dropdown-menu'
import 'v-dropdown-menu/dist/vue3/v-dropdown-menu.css'
import 'v-dropdown-menu/css'
</script>
```
#### Via CDN
Expand All @@ -101,14 +102,15 @@ import 'v-dropdown-menu/dist/vue3/v-dropdown-menu.css'
```js
import Vue from "vue"
import DropdownMenu from "v-dropdown-menu/vue2"
import 'v-dropdown-menu/vue2/css'

Vue.use(DropdownMenu);
```

#### Local Register
```js
import DropdownMenu from "v-dropdown-menu/vue2"
import "v-dropdown-menu/dist/vue2/v-dropdown-menu.css"
import 'v-dropdown-menu/vue2/css'

export default {
components: {
Expand Down
2 changes: 1 addition & 1 deletion docs/components/AppDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<script setup>
import DropdownMenu from 'v-dropdown-menu'
import '/node_modules/v-dropdown-menu/dist/vue3/v-dropdown-menu.css'
import 'v-dropdown-menu/css'
</script>

<style scoped>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/AppDropdownAdvanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<script setup>
import DropdownMenu from 'v-dropdown-menu'
import '/node_modules/v-dropdown-menu/dist/vue3/v-dropdown-menu.css'
import 'v-dropdown-menu/css'
const writeToConsoleForOpened = value => {
console.log(value, 'opened')
Expand Down
2 changes: 1 addition & 1 deletion docs/components/AppDropdownWithCloser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<script setup>
import DropdownMenu from 'v-dropdown-menu'
import '/node_modules/v-dropdown-menu/dist/vue3/v-dropdown-menu.css'
import 'v-dropdown-menu/css'
</script>

<style scoped>
Expand Down
3 changes: 2 additions & 1 deletion docs/content/1.guide/1.registration/0.vue3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import { createApp } from 'vue'
import App from './App.vue'
import DropdownMenu from 'v-dropdown-menu'
import 'v-dropdown-menu/css'

const app = createApp(App)

Expand All @@ -17,7 +18,7 @@ app.mount('#app')
```html
<script setup>
import DropdownMenu from 'v-dropdown-menu'
import 'v-dropdown-menu/dist/vue3/v-dropdown-menu.css'
import 'v-dropdown-menu/css'
</script>
```
#### Via CDN
Expand Down
3 changes: 2 additions & 1 deletion docs/content/1.guide/1.registration/1.vue2.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
```js
import Vue from "vue"
import DropdownMenu from "v-dropdown-menu/vue2"
import 'v-dropdown-menu/vue2/css'

Vue.use(DropdownMenu);
```

#### Local Register
```js
import DropdownMenu from "v-dropdown-menu/vue2"
import "v-dropdown-menu/dist/vue2/v-dropdown-menu.css"
import 'v-dropdown-menu/vue2/css'

export default {
components: {
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"nuxt": "3.3.3"
},
"dependencies": {
"v-dropdown-menu": "^2.0.1"
"v-dropdown-menu": "^2.0.4"
}
}
8 changes: 4 additions & 4 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6647,10 +6647,10 @@ uvu@^0.5.0:
kleur "^4.0.3"
sade "^1.7.3"

v-dropdown-menu@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/v-dropdown-menu/-/v-dropdown-menu-2.0.1.tgz#89763104fad89d60e535850e041af78f069cbc7f"
integrity sha512-AoCL3G63zK6oIs0AS6e9C2rguNb6PZb9t1GmzvWYQ1cw4uHf7xTNzRMQpu23H2rlCErV2rXbhdsYkGtHp+Eljg==
v-dropdown-menu@^2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/v-dropdown-menu/-/v-dropdown-menu-2.0.4.tgz#63e6d741d961e1ce8c197f91a65be6bfc4a5e840"
integrity sha512-YPHnx29YWVSdRO8IZcIKNCmSx2jFOkU/5Jyv8pN7P/z2Jif/L6Xto3J29LwIhday1zwMI5sjmU5bNMbBnmdg0A==

vfile-location@^4.0.0:
version "4.1.0"
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
"unpkg": "./dist/vue3/v-dropdown-menu.global.js",
"module": "./dist/vue3/v-dropdown-menu.mjs"
},
"./vue2": "./dist/vue2/index.js"
"./css": "./dist/vue3/v-dropdown-menu.css",
"./vue2": "./dist/vue2/index.js",
"./vue2/css": "./dist/vue2/v-dropdown-menu.css"
},
"files": [
"dist",
Expand Down Expand Up @@ -139,4 +141,4 @@
"path": "cz-conventional-changelog"
}
}
}
}

0 comments on commit 92f78c8

Please sign in to comment.