Skip to content

Commit 372cefb

Browse files
authored
Merge pull request #2 from atsutopia/feature/v0.0.1
fix webpack config
2 parents d05f4cc + b7c9061 commit 372cefb

File tree

7 files changed

+10
-11
lines changed

7 files changed

+10
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
A swipeable material's bottom sheet implementation, that uses [hammerjs](https://github.com/hammerjs/hammer.js).
77

8-
[Demo](https://atsutopia.github.io/vue-swipeable-bottom-sheet/dist)
8+
![vue-swipeable-bottom-sheet.gif](vue-swipeable-bottom-sheet.gif)
99

1010
## Installation
1111

example/example.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<h1>Example</h1>
3+
<h1>Vue Swipeable Bottom Sheet</h1>
44
<button @click="open">Open</button>
55
<button @click="half">Half</button>
66
<button @click="close">Close</button>

example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<meta name="MobileOptimized" content="320">
66
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui, maximum-scale=1.0, minimum-scale=1.0">
7-
<title>vue-swipe examples</title>
7+
<title>example</title>
88
</head>
99
<body>
1010
<div id="app"></div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-swipeable-bottom-sheet",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "",
55
"main": "dist/vue-swipeable-bottom-sheet.js",
66
"scripts": {

src/components/SwipeableBottomSheet.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export default {
3030
}
3131
},
3232
mounted () {
33+
console.log("init")
3334
window.onresize = () => {
3435
this.rect = this.$refs.card.getBoundingClientRect()
3536
}

vue-swipeable-bottom-sheet.gif

207 KB
Loading

webpack.config.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ module.exports = {
1313
rules: [
1414
{
1515
test: /\.vue$/,
16-
loader: 'vue-loader',
17-
options: {
18-
loaders: {
19-
js: 'babel-loader',
20-
scss: ['postcss-loader']
21-
}
22-
}
16+
loader: 'vue-loader'
2317
},
2418
{ test: /\.js$/,
2519
loader: 'babel-loader'
20+
},
21+
{
22+
test: /\.scss$/,
23+
loader: ['postcss-loader']
2624
}
2725
]
2826
}

0 commit comments

Comments
 (0)