Skip to content

Commit 83cff1d

Browse files
committed
update README.md
1 parent a6eaabd commit 83cff1d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,22 @@ All arguments other than listed below will be directly passed to [webpack](https
118118

119119
| Name | Argument | Type | Description |
120120
|-------------------|--------------------|--------------|-----------------------------------------------------------------------------------------------------------------|
121-
| **urlLoader** | -- | boolean\|number | Whether to use [url-loader](https://github.com/webpack-contrib/url-loader) for images. If number is passed it will be used as '[limit](https://github.com/webpack-contrib/url-loader#limit)' option.<br />**Default: `true`** |
122-
| **imagemin** | -- | boolean\|object | Whether to use [image-webpack-loader](https://github.com/tcoopman/image-webpack-loader) to optimize images with [imagemin](https://github.com/imagemin/imagemin). Object will be passed as [image-webpack-loader](https://github.com/tcoopman/image-webpack-loader) configuration.<br />**Default: `true`** |
121+
| **inlineAssets** | true | boolean\|number | Whether to use [url-loader](https://github.com/webpack-contrib/url-loader) for images. If number is passed it will be used as '[limit](https://github.com/webpack-contrib/url-loader#limit)' option.<br />**Default: `true`** |
122+
| **imagemin** | -- | boolean\|object | Whether to use [image-webpack-loader](https://github.com/tcoopman/image-webpack-loader) to optimize images with [imagemin](https://github.com/imagemin/imagemin). Object will be passed as [image-webpack-loader](https://github.com/tcoopman/image-webpack-loader) configuration.<br />**Default: `true`** |
123123
| **paths.src** | **--src-path** | string | Source path relative to project root.<br />**Default: `'src/assets'`** |
124124
| **paths.output** | **--output-path** | string | Output path relative to project root.<br />**Default: `'dist'`** |
125125
| **paths.scripts** | **--scripts-path** | string | Scripts path relative to `src\|output`. Use `false` to skip this path.<br />**Default: `'js'`** |
126126
| **paths.styles** | **--styles-path** | string | Styles path relative to `src\|output`. Use `false` to skip this path.<br />**Default: `'scss'`** |
127-
| **paths.images** | **--images-path** | string | Images path relative to `output`. Images included in scripts and styles will be placed in this location if `urlLoader` is turned off or the image size exceeds `limit`.<br />**Default: `'images'`** |
127+
| **paths.images** | **--images-path** | string | Images path relative to `output`. Images included in scripts and styles will be placed in this location if `inlineAssets` is turned off or the image size exceeds `limit`.<br />**Default: `'images'`** |
128+
| **paths.fonts** | **--fonts-path** | Fonts | Fonts path relative to `output`. Font files included in scripts and styles will be placed in this location.<br />**Default: `'fonts'`** |
128129

129130
*Example:*
130131
```json
131132
{
132133
"mpScriptsConfig": {
133-
"urlLoader": 8192,
134+
"inlineAssets": 8192,
134135
"imagemin": {
135-
"svgo": {
136+
"svgo": {
136137
"plugins": [
137138
{ "removeDoctype": false }
138139
]

0 commit comments

Comments
 (0)