Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 18, 2019
1 parent fe49c20 commit d4f151a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 19 deletions.
11 changes: 3 additions & 8 deletions example/App.vue
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
<template>
<img :class="$style.logo" src="./logo.png">
<img class="logo" src="./logo.png">
<div>
{{ count }}
<span>{{ count }}</span>
<Button>slotttt</Button>
<Button><span>slot</span></Button>
</div>
</template>

<script>
import { useCSSModule } from 'vue'
import Button from './Button.vue'
export default {
setup() {
const styles = useCSSModule()
console.log('hmm')
},
data() {
return { count: 0 }
},
Expand All @@ -25,7 +20,7 @@ export default {
}
</script>

<style module>
<style scoped>
.logo {
width: 100px;
border: 1px solid red;
Expand Down
2 changes: 1 addition & 1 deletion example/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export default {

<style scoped>
::v-slotted(*) {
color: red;
color: green;
}
</style>
21 changes: 11 additions & 10 deletions example/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ module.exports = {
filename: 'bundle.js',
publicPath: '/dist/'
},
devServer: {
stats: "minimal",
contentBase: __dirname
},
module: {
rules: [
{
Expand Down Expand Up @@ -46,15 +42,20 @@ module.exports = {
}
]
},
resolveLoader: {
alias: {
'vue-loader': require.resolve('../')
}
},
plugins: [
new VueLoaderPlugin(),
new MiniCssExtractPlugin({
filename: '[name].css'
})
]
],
devServer: {
stats: "minimal",
contentBase: __dirname,
overlay: true
},
resolveLoader: {
alias: {
'vue-loader': require.resolve('../')
}
}
}

0 comments on commit d4f151a

Please sign in to comment.