Skip to content

Commit 0d52be1

Browse files
galvezatinux
authored andcommitted
Remove section on build.vendor (nuxt#783)
1 parent 1dbed54 commit 0d52be1

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

en/api/configuration-build.md

+1-30
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default {
163163
}
164164
```
165165

166-
To understand a bit more about the use of manifest and vendor, take a look at this [webpack documentation](https://webpack.js.org/guides/code-splitting-libraries/).
166+
To understand a bit more about the use of manifests, take a look at this [webpack documentation](https://webpack.js.org/guides/code-splitting-libraries/).
167167

168168
## hotMiddleware
169169

@@ -528,35 +528,6 @@ Templates are rendered using [`lodash.template`](https://lodash.com/docs/#templa
528528

529529
If you want to transpile specific dependencies with Babel, you can add them in `build.transpile`. Item in transpile can be string or regex object for matching dependencies file name.
530530

531-
## vendor
532-
533-
> Nuxt.js lets you add modules inside the `vendor.bundle.js` file to reduce the size of the application bundle. This is especially helpful when using external modules (like `axios` for example).
534-
535-
- Type: `Array`
536-
537-
To add a module/file inside the vendor bundle, add the `build.vendor` key inside `nuxt.config.js`:
538-
539-
```js
540-
export default {
541-
build: {
542-
vendor: ['axios']
543-
}
544-
}
545-
```
546-
547-
You can also give a path to a file, like a custom lib you created:
548-
549-
```js
550-
export default {
551-
build: {
552-
vendor: [
553-
'axios',
554-
'~/plugins/my-lib.js'
555-
]
556-
}
557-
}
558-
```
559-
560531
## vueLoader
561532

562533
- Type: `Object`

0 commit comments

Comments
 (0)