Commit ee2ce4930093401e30e34a002875fdd938dbfced

Authored by liuqimichale
1 parent 027ae453

项目初始化

build/webpack.base.conf.js
@@ -64,14 +64,7 @@ module.exports = { @@ -64,14 +64,7 @@ module.exports = {
64 } 64 }
65 }, 65 },
66 { 66 {
67 - test: /\.scss$/,  
68 - use: [{  
69 - loader: "style-loader" // creates style nodes from JS strings  
70 - }, {  
71 - loader: "css-loader" // translates CSS into CommonJS  
72 - }, {  
73 - loader: "sass-loader" // compiles Sass to CSS  
74 - }] 67 + test:/\.scss$/,use:['style-loader','css-loader','sass-loader'],
75 } 68 }
76 ] 69 ]
77 }, 70 },
src/App.vue
@@ -38,6 +38,7 @@ export default { @@ -38,6 +38,7 @@ export default {
38 } 38 }
39 39
40 .footer { 40 .footer {
  41 + width: 100%;
41 height: 100px; 42 height: 100px;
42 position: absolute; 43 position: absolute;
43 bottom: 0; 44 bottom: 0;
src/components/commonHeaderFooter/VFooter.vue
1 <template> 1 <template>
2 - <div>1</div> 2 + <div>2</div>
3 </template> 3 </template>
4 4
5 <script> 5 <script>
@@ -8,6 +8,6 @@ export default { @@ -8,6 +8,6 @@ export default {
8 } 8 }
9 </script> 9 </script>
10 10
11 -<style scoped lang="scss"> 11 +<style scoped lang="">
12 12
13 </style> 13 </style>
src/components/commonHeaderFooter/VHeader.vue
@@ -8,6 +8,6 @@ export default { @@ -8,6 +8,6 @@ export default {
8 } 8 }
9 </script> 9 </script>
10 10
11 -<style scoped lang="scss"> 11 +<style scoped lang="">
12 12
13 </style> 13 </style>