File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 7
7
</ head >
8
8
< body >
9
9
< div id ="app "> </ div >
10
+ < script src ="https://buttons.github.io/buttons.js "> </ script >
10
11
< script src ="./dist/build.js "> </ script >
11
12
</ body >
12
13
</ html >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<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 >
9
14
</div >
10
15
<grid
11
16
:center =" false"
42
47
</grid>
43
48
-->
44
49
</div >
50
+
45
51
</template >
46
52
47
53
<script >
@@ -98,6 +104,10 @@ export default {
98
104
</script >
99
105
100
106
<style lang="scss">
107
+ body {
108
+ background : #fafafa ;
109
+ }
110
+
101
111
#app {
102
112
font-family : ' Avenir' , Helvetica , Arial , sans-serif ;
103
113
-webkit-font-smoothing : antialiased ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module.exports = {
6
6
entry : './src/main.js' ,
7
7
output : {
8
8
path : path . resolve ( __dirname , './dist' ) ,
9
- publicPath : '. /' ,
9
+ publicPath : '/dist /' ,
10
10
filename : 'build.js'
11
11
} ,
12
12
module : {
@@ -30,10 +30,11 @@ module.exports = {
30
30
resolve : {
31
31
alias : {
32
32
'vue$' : 'vue/dist/vue.esm.js' ,
33
- 'plugin' : path . resolve ( __dirname , " ../dist/index.js" )
33
+ 'plugin' : path . resolve ( __dirname , ' ../dist/index.js' )
34
34
}
35
35
} ,
36
36
devServer : {
37
+ // contentBase: path.join(__dirname, 'dist'),
37
38
historyApiFallback : true ,
38
39
noInfo : true
39
40
} ,
@@ -44,6 +45,7 @@ module.exports = {
44
45
}
45
46
46
47
if ( process . env . NODE_ENV === 'production' ) {
48
+ module . exports . output . publicPath = '.'
47
49
module . exports . devtool = '#source-map'
48
50
// http://vue-loader.vuejs.org/en/workflow/production.html
49
51
module . exports . plugins = ( module . exports . plugins || [ ] ) . concat ( [
You can’t perform that action at this time.
0 commit comments