Skip to content

Commit f60dd33

Browse files
committed
Updated demo
1 parent 1c4ebb2 commit f60dd33

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

demo/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</head>
88
<body>
99
<div id="app"></div>
10+
<script src="https://buttons.github.io/buttons.js"></script>
1011
<script src="./dist/build.js"></script>
1112
</body>
1213
</html>

demo/src/App.vue

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
<template>
22
<div id="app">
3-
<div>
4-
<div class="color-header">
5-
<Icon :color="selected" style="width: auto;">
6-
Color
7-
</Icon>
8-
</div>
3+
<div style="padding: 10px;">
4+
<a class="github-button"
5+
href="https://github.com/euvl/vue-js-grid"
6+
data-icon="octicon-star"
7+
data-show-count="true"
8+
aria-label="Star euvl/vue-js-grid on GitHub">Star</a>
9+
</div>
10+
<div class="color-header">
11+
<Icon :color="selected" style="width: auto;">
12+
vue-js-grid
13+
</Icon>
914
</div>
1015
<grid
1116
:center="false"
@@ -42,6 +47,7 @@
4247
</grid>
4348
-->
4449
</div>
50+
4551
</template>
4652

4753
<script>
@@ -98,6 +104,10 @@ export default {
98104
</script>
99105

100106
<style lang="scss">
107+
body {
108+
background: #fafafa;
109+
}
110+
101111
#app {
102112
font-family: 'Avenir', Helvetica, Arial, sans-serif;
103113
-webkit-font-smoothing: antialiased;

demo/webpack.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
entry: './src/main.js',
77
output: {
88
path: path.resolve(__dirname, './dist'),
9-
publicPath: './',
9+
publicPath: '/dist/',
1010
filename: 'build.js'
1111
},
1212
module: {
@@ -30,10 +30,11 @@ module.exports = {
3030
resolve: {
3131
alias: {
3232
'vue$': 'vue/dist/vue.esm.js',
33-
'plugin': path.resolve(__dirname, "../dist/index.js")
33+
'plugin': path.resolve(__dirname, '../dist/index.js')
3434
}
3535
},
3636
devServer: {
37+
// contentBase: path.join(__dirname, 'dist'),
3738
historyApiFallback: true,
3839
noInfo: true
3940
},
@@ -44,6 +45,7 @@ module.exports = {
4445
}
4546

4647
if (process.env.NODE_ENV === 'production') {
48+
module.exports.output.publicPath = '.'
4749
module.exports.devtool = '#source-map'
4850
// http://vue-loader.vuejs.org/en/workflow/production.html
4951
module.exports.plugins = (module.exports.plugins || []).concat([

0 commit comments

Comments
 (0)