Skip to content

Commit fda94a9

Browse files
committed
add text versions of image code examples
1 parent ec38b56 commit fda94a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/single-file-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ All of these are solved by **single-file components** with a `.vue` extension, m
1919

2020
Here's an example of a file we'll call `Hello.vue`:
2121

22-
<img src="/images/vue-component.png" style="display: block; margin: 30px auto;">
22+
<a href="https://gist.github.com/chrisvfritz/e2b6a6110e0829d78fa4aedf7cf6b235" target="_blank"><img src="/images/vue-component.png" alt="Single-file component example (click for code as text)" style="display: block; margin: 30px auto;"></a>
2323

2424
Now we get:
2525

@@ -29,7 +29,7 @@ Now we get:
2929

3030
As promised, we can also use preprocessors such as Pug, Babel (with ES2015 modules), and Stylus for cleaner and more feature-rich components.
3131

32-
<img src="/images/vue-component-with-preprocessors.png" style="display: block; margin: 30px auto;">
32+
<a href="https://gist.github.com/chrisvfritz/1c9f2daea9bc078dcb47e9a82e5f7587" target="_blank"><img src="/images/vue-component-with-preprocessors.png" alt="Single-file component example with preprocessors (click for code as text)" style="display: block; margin: 30px auto;"></a>
3333

3434
These specific languages are only examples. You could as easily use Bublé, TypeScript, SCSS, PostCSS - or whatever other preprocessors that help you be productive. If using Webpack with `vue-loader`, it also has first-class support for CSS Modules.
3535

0 commit comments

Comments
 (0)