Showing
6 changed files
with
17 additions
and
9 deletions
@@ -57,6 +57,7 @@ | @@ -57,6 +57,7 @@ | ||
57 | "css-loader": "^0.23.1", | 57 | "css-loader": "^0.23.1", |
58 | "eslint": "^3.0.1", | 58 | "eslint": "^3.0.1", |
59 | "eslint-config-yoho": "^1.0.1", | 59 | "eslint-config-yoho": "^1.0.1", |
60 | + "eslint-plugin-html": "^1.5.1", | ||
60 | "gulp": "^3.9.1", | 61 | "gulp": "^3.9.1", |
61 | "gulp-cssnano": "^2.1.2", | 62 | "gulp-cssnano": "^2.1.2", |
62 | "gulp-ftp": "^1.1.0", | 63 | "gulp-ftp": "^1.1.0", |
@@ -181,7 +181,10 @@ gulp.task('webpack-dev-server', () => { | @@ -181,7 +181,10 @@ gulp.task('webpack-dev-server', () => { | ||
181 | debug: true, | 181 | debug: true, |
182 | vue: { | 182 | vue: { |
183 | postcss: postcssPlugin(env.dev), | 183 | postcss: postcssPlugin(env.dev), |
184 | - autoprefixer: false | 184 | + autoprefixer: false, |
185 | + loaders: { | ||
186 | + css: 'vue-style-loader!css-loader?sourceMap&-url' | ||
187 | + } | ||
185 | } | 188 | } |
186 | }); | 189 | }); |
187 | 190 |
public/img/channel/boys.png
0 → 100644

2 KB
public/img/sprite.channel.png
0 → 100644

1.24 KB
1 | <template> | 1 | <template> |
2 | <div class="test"> | 2 | <div class="test"> |
3 | {{message}} | 3 | {{message}} |
4 | - | ||
5 | - <div class="test2"></div> | 4 | + </div> |
5 | + <div class="test2"> | ||
6 | + {{message2}} | ||
6 | </div> | 7 | </div> |
7 | </template> | 8 | </template> |
8 | 9 | ||
@@ -10,7 +11,8 @@ | @@ -10,7 +11,8 @@ | ||
10 | module.exports = { | 11 | module.exports = { |
11 | data: function() { | 12 | data: function() { |
12 | return { | 13 | return { |
13 | - message: 'test' | 14 | + message: 'test', |
15 | + message2: 'test2' | ||
14 | } | 16 | } |
15 | } | 17 | } |
16 | } | 18 | } |
@@ -19,10 +21,11 @@ | @@ -19,10 +21,11 @@ | ||
19 | <style> | 21 | <style> |
20 | .test { | 22 | .test { |
21 | color: green; | 23 | color: green; |
24 | + background: url("/channel/boys.png"); | ||
25 | + } | ||
22 | 26 | ||
23 | - .test2 { | ||
24 | - background: #000; | ||
25 | - display: flex; | ||
26 | - } | 27 | + .test2 { |
28 | + color: blue; | ||
29 | + background: resolve("channel/boys.png"); | ||
27 | } | 30 | } |
28 | </style> | 31 | </style> |
-
Please register or login to post a comment