Skip to content

Commit 093b92c

Browse files
committed
translate options.md
1 parent 75cc5bd commit 093b92c

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

β€Ždocs/ko/options.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Options Reference
1+
# μ˜΅μ…˜ 레퍼런슀
22

3-
## Usage Difference Between Webpack 1 & 2
3+
## Webpack 1 & 2 μ‚¬μš© λ°©λ²•μ˜ 차이점
44

5-
For Webpack 1.x: add a root `vue` block in your Webpack config:
5+
Webpack 1.x의 경우 Webpack 섀정에 루트 `vue` λΈ”λŸ­μ„ μΆ”κ°€ν•©λ‹ˆλ‹€.
66

77
``` js
88
module.exports = {
@@ -13,7 +13,7 @@ module.exports = {
1313
}
1414
```
1515

16-
For Webpack 2 (^2.1.0-beta.25):
16+
Webpack 2 (^2.1.0-beta.25)λŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.
1717

1818
``` js
1919
module.exports = {
@@ -34,15 +34,15 @@ module.exports = {
3434

3535
### loaders
3636

37-
- type: `Object`
37+
- νƒ€μž…: `Object`
3838

39-
An object specifying Webpack loaders to use for language blocks inside `*.vue` files. The key corresponds to the `lang` attribute for language blocks, if specified. The default `lang` for each type is:
39+
`*.vue` 파일의 language block에 μ‚¬μš©ν•  Webpack λ‘œλ”λ₯Ό μ§€μ •ν•˜λŠ” κ°μ²΄μž…λ‹ˆλ‹€. 이 ν‚€λŠ” νŠΉλ³„νžˆ μ§€μ •λœ 경우 language block에 λŒ€ν•œ `lang` 속성에 ν•΄λ‹Ήν•©λ‹ˆλ‹€. 각 νƒ€μž…μ— λŒ€ν•œ 기본적인 `lang`은 λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.
4040

4141
- `<template>`: `html`
4242
- `<script>`: `js`
4343
- `<style>`: `css`
4444

45-
For example, to use `babel-loader` and `eslint-loader` to process all `<script>` blocks:
45+
예λ₯Ό λ“€μ–΄, `babel-loader`와 `eslint-loader`λ₯Ό μ‚¬μš©ν•˜μ—¬ λͺ¨λ“  `<script>` λΈ”λŸ­μ„ μ²˜λ¦¬ν•˜λ €λ©΄ λ‹€μŒκ³Ό 같이 μ‚¬μš©ν•©λ‹ˆλ‹€.
4646

4747
``` js
4848
// ...
@@ -55,23 +55,23 @@ module.exports = {
5555

5656
### postcss
5757

58-
- type: `Array` or `Function` or `Object`
59-
- `Object` format only supported in ^8.5.0
58+
- νƒ€μž…: `Array` λ˜λŠ” `Function`, `Object`
59+
- `Object` νƒ€μž…μ€ 였직 ^8.5.0μ—μ„œ μ§€μ›λ©λ‹ˆλ‹€.
6060

61-
Specify custom PostCSS plugins to be applied to CSS inside `*.vue` files. If using a function, the function will called using the same loader context and should return an Array of plugins.
61+
`*.vue` 파일 μ•ˆμ— CSS에 μ μš©ν•  PostCSS ν”ŒλŸ¬κ·ΈμΈμ„ μ§€μ •ν•©λ‹ˆλ‹€. ν•¨μˆ˜λ₯Ό μ‚¬μš©ν•˜λŠ” 경우 ν•¨μˆ˜λŠ” λ™μΌν•œ λ‘œλ” μ»¨ν…μŠ€νŠΈλ₯Ό μ‚¬μš©ν•˜μ—¬ 호좜되며 ν”ŒλŸ¬κ·ΈμΈμ˜ 배열을 λ°˜ν™˜ν•΄μ•Ό ν•©λ‹ˆλ‹€.
6262

6363
``` js
6464
// ...
6565
vue: {
66-
// note: do not nest the `postcss` option under `loaders`
66+
// 주의: `loaders`μ—μ„œ `postcss` μ˜΅μ…˜μ„ μ€‘μ²©ν•˜λ©΄ μ•ˆλ©λ‹ˆλ‹€.
6767
postcss: [require('postcss-cssnext')()],
6868
loaders: {
6969
// ...
7070
}
7171
}
7272
```
7373

74-
This option can also be an object that contains options to be passed to the PostCSS processor. This is useful when you are using PostCSS projects that relies on custom parser/stringifiers:
74+
이 μ˜΅μ…˜μ€ PostCSS ν”„λ‘œμ„Έμ„œμ— 전달할 μ˜΅μ…˜μ„ ν¬ν•¨ν•˜λŠ” 객체일 수 μžˆμŠ΅λ‹ˆλ‹€. 이것은 μ‚¬μš©μž μ •μ˜ parser/stringifiers에 μ˜μ‘΄ν•˜λŠ” PostCSS ν”„λ‘œμ νŠΈλ₯Ό μ‚¬μš©ν•  λ•Œ μœ μš©ν•©λ‹ˆλ‹€.
7575

7676
``` js
7777
postcss: {
@@ -84,46 +84,47 @@ module.exports = {
8484

8585
### cssSourceMap
8686

87-
- type: `Boolean`
88-
- default: `true`
87+
- νƒ€μž…: `Boolean`
88+
- λ””ν΄νŠΈ: `true`
8989

90-
Whether to enable source maps for CSS. Disabling this can avoid some relative path related bugs in `css-loader` and make the build a bit faster.
90+
CSS μ†ŒμŠ€ 맡을 μ‚¬μš©ν• μ§€ μ—¬λΆ€λ₯Ό μ •ν•©λ‹ˆλ‹€. 이 κΈ°λŠ₯을 끄면 `css-loader`μ—μ„œ μƒλŒ€ κ²½λ‘œμ™€ κ΄€λ ¨λœ 버그λ₯Ό ν”Όν•  수 있고 λΉŒλ“œλ₯Ό μ’€ 더 λΉ λ₯΄κ²Œ ν•  수 μžˆμŠ΅λ‹ˆλ‹€.
9191

92-
Note this is automatically set to `false` if the `devtool` option is not present in the main Webpack config.
92+
`devtool` μ˜΅μ…˜μ΄ 메인 Webpack 섀정에 μ—†μœΌλ©΄ μžλ™μœΌλ‘œ `false`둜 μ„€μ •λ©λ‹ˆλ‹€.
9393

9494
### esModule
9595

96-
- type: `Boolean`
97-
- default: `undefined`
96+
- νƒ€μž…: `Boolean`
97+
- λ””ν΄νŠΈ: `undefined`
9898

9999
Whether to emit esModule compatible code. By default vue-loader will emit default export in commonjs format like `module.exports = ....`. When `esModule` is set to true, default export will be transpiled into `exports.__esModule = true; exports = ...`. Useful for interoperating with transpiler other than Babel, like TypeScript.
100100

101101
### preserveWhitespace
102102

103-
- type: `Boolean`
104-
- default: `true`
103+
- νƒ€μž…: `Boolean`
104+
- λ””ν΄νŠΈ: `true`
105105

106-
If set to `false`, the whitespaces between HTML tags in templates will be ignored.
106+
λ§Œμ•½ `false`둜 μ„€μ •ν•˜λ©΄ ν…œν”Œλ¦Ώμ˜ HTML νƒœκ·Έ μ‚¬μ΄μ˜ 곡백이 λ¬΄μ‹œλ©λ‹ˆλ‹€.
107107

108108
### transformToRequire
109109

110-
- type: `{ [tag: string]: string | Array<string> }`
111-
- default: `{ img: 'src' }`
110+
- νƒ€μž…: `{ [tag: string]: string | Array<string> }`
111+
- λ””ν΄νŠΈ: `{ img: 'src' }`
112112

113-
During template compilation, the compiler can transform certain attributes, such as `src` URLs, into `require` calls, so that the target asset can be handled by Webpack. The default config transforms the `src` attribute on `<img>` tags.
113+
ν…œν”Œλ¦Ώ 컴파일 쀑에 μ»΄νŒŒμΌλŸ¬λŠ” `src` URLκ³Ό 같은 νŠΉμ • 속성을 `require` 호좜둜 λ³€ν™˜ν•˜μ—¬ λŒ€μƒ Asset을 Webpackμ—μ„œ μ²˜λ¦¬ν•  수 μžˆμŠ΅λ‹ˆλ‹€. κΈ°λ³Έ 섀정은 `<img>` νƒœκ·Έμ— `src` 속성을 λ³€ν™˜ν•©λ‹ˆλ‹€.
114114

115115
### buble
116116

117-
- type: `Object`
118-
- default: `{}`
117+
- νƒ€μž…: `Object`
118+
- λ””ν΄νŠΈ: `{}`
119119

120120
Configure options for `buble-loader` (if present), AND the buble compilation pass for template render functions.
121+
`buble-loader`κ°€ μ‘΄μž¬ν•œλ‹€λ©΄ `buble-loader`에 λŒ€ν•œ μ˜΅μ…˜μ„ μ„€μ •ν•˜κ³ , ν…œν”Œλ¦Ώ λ Œλ”λ§ ν•¨μˆ˜λ₯Ό μœ„ν•œ buble 컴파일 패슀λ₯Ό μ„€μ •ν•˜μ„Έμš”.
121122

122-
> version note: in version 9.x, the template expressions are configured separately via the now removed `templateBuble` option.
123+
> 버전 λ…ΈνŠΈ: 버전 9.xμ—μ„œ ν…œν”Œλ¦Ώ ν‘œν˜„μ‹μ€ 이제 제거된 `templateBuble` μ˜΅μ…˜μ„ 톡해 λ³„λ„λ‘œ μ„€μ •λ©λ‹ˆλ‹€.
123124
124-
The template render functions compilation supports a special transform `stripWith` (enabled by default), which removes the `with` usage in generated render functions to make them strict-mode compliant.
125+
ν…œν”Œλ¦Ώ λ Œλ”λ§ ν•¨μˆ˜ μ»΄νŒŒμΌμ€ 특수 λ³€ν™˜ `stripWith`(기본적으둜 ν™œμ„±ν™”λ¨)을 μ§€μ›ν•©λ‹ˆλ‹€. 이 ν•¨μˆ˜λŠ” μƒμ„±λœ λ Œλ”λ§ ν•¨μˆ˜μ—μ„œ `with` μ‚¬μš©μ„ μ œκ±°ν•˜μ—¬ strict λͺ¨λ“œλ₯Ό μ€€μˆ˜ν•©λ‹ˆλ‹€.
125126

126-
Example configuration:
127+
λ‹€μŒμ€ μ„€μ • 예 μž…λ‹ˆλ‹€.
127128

128129
``` js
129130
// webpack 1

0 commit comments

Comments
Β (0)