Skip to content

Commit e1bad13

Browse files
committed
I translated "Using Pre-Processors".
1 parent 8331e5e commit e1bad13

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

docs/ko/using_pre-processors.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# Using Pre-Processors
1+
# 전처리기 사용하기
22

33
[`webpack`](https://github.com/webpack/webpack)과 함께 [`vue-loader`](https://github.com/vuejs/vue-loader)를 사용하면 큰 노력을 들이지 않고도 Vue components 파일에서 직접 HTML/CSS/JS를 전-처리 할 수 ​​있다는 이점이 있습니다. 이에 대한 자세한 내용은 [**여기**](https://vuejs.org/v2/guide/single-file-components.html)를 참조하세요.
44

55
## Use Case
66

77
CSS를 사전 처리하기 위해 Sass/SCSS를 사용해야한다고 가정 해봅시다. 먼저 다음 구문을 처리 할 적절한 `webpack` loader를 설치해야합니다.
88

9-
#### Installing `sass-loader`
9+
#### `sass-loader` 설치하기
1010

1111
```bash
1212
npm install --save-dev sass-loader node-sass
1313
```
1414

15-
Once the loader we need is installed, everything is pretty much finished. `vue-loader` will magically take care of the rest. Now we can easily add `lang="sass"` or `lang="scss"` to our Vue component files. Notice we also installed `node-sass` as it is a dependent package for `sass-loader`.
15+
필요한 로더가 설치되면, 거의 모든 것이 끝난 것 입니다. `vue-loader`는 마술처럼 나머지를 처리합니다. 이제 Vue component 파일에 `lang="sass"` 또는 `lang="scss"`를 쉽게 추가 할 수 있습니다 `sass-loader`의 의존성 패키지인 `node-sass`도 설치했음을 주의하세요.
1616

17-
#### Applying the `lang` attribute
17+
#### `lang` 속성 적용하기
1818

19-
So...
19+
그래서...
2020

2121
```html
2222
<style>
@@ -26,7 +26,7 @@ So...
2626
</style>
2727
```
2828

29-
...now becomes...
29+
...이제 된다...
3030

3131
```html
3232
<style lang="scss">
@@ -36,19 +36,19 @@ So...
3636
</style>
3737
```
3838

39-
The same principles apply for just about any other pre-processor. So maybe you need coffeescript for your JS? Simply install the [coffeescript-loader](https://github.com/webpack/coffee-loader) and apply the `lang="coffeescript"` attribute to your `<script>` tag.
39+
다른 전처리기에 대해서도 같은 원칙이 적용됩니다. 그러므로 JS에 coffeescript가 필요하다면, [coffeescript-loader](https://github.com/webpack/coffee-loader)를 설치하고 `lang="coffeescript"` 속성을 `<script>` 태그에 적용하기만 하면됩니다.
4040

41-
For more advanced use of this feature please head over to the [vue-loader documentation](http://vue-loader.vuejs.org/en/configurations/pre-processors.html) for more information.
41+
이 기능의 고급 사용법은 [vue-loader documentation](http://vue-loader.vuejs.org/en/configurations/pre-processors.html) 설명서로를 참고하세요.
4242

43-
## Using Sass/SCSS globals
43+
## Sass/SCSS 전역 변수 사용하기
4444

45-
When using Sass/SCSS for your CSS syntax, it's very beneficial to make use of global variables/mixins throughout all Vue component files. Here's how to make that happen.
45+
CSS 구문에 Sass/SCSS를 사용하는 경우, 모든 Vue component 파일에서 global variables/mixins를 사용할 수 있다면 매우 유용할 것 입니다. 여기에 그 방법이 있습니다.
4646

4747
### Use Case
4848

49-
This example demonstrates how to apply a `globals.scss` to all Vue component files. This documentation assumes you have already setup `sass-loader` in your development environment as mentioned above.
49+
이 예는 모든 Vue component 파일에 `globals.scss`를 적용하는 방법을 보여줍니다. 이 문서는 위에서 언급 한 바와 같이 이미 개발 환경에 `sass-loader`를 설치했다고 가정합니다.
5050

51-
#### Define your globals
51+
#### 전역 변수를 정의하세요.
5252

5353
**src/renderer/globals.scss**
5454

@@ -57,9 +57,9 @@ $brand-primary: blue;
5757
$brand-accent: turquoise;
5858
```
5959

60-
#### Inject `globals.scss` directly into `node-sass`
60+
#### `globals.scss``node-sass`에 직접 넣으세요.
6161

62-
Edit the `vue-loader` config in **.electron-vue/webpack.renderer.config.js**
62+
**.electron-vue/webpack.renderer.config.js**에서 `vue-loader` config을 편집하세요.
6363

6464
```js
6565
loaders: {
@@ -68,7 +68,7 @@ loaders: {
6868
}
6969
```
7070

71-
#### Use your globals
71+
#### 전역 변수를 사용하세요.
7272

7373
**SomeComponent.vue**
7474

0 commit comments

Comments
 (0)