diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index 7a748a2..c2991b7 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -92,6 +92,20 @@ In addition to exposing the corresponding life-cycle hooks in the code, in order #### webpack: +If using Webpack v5: +```js +const packageName = require('./package.json').name; + +module.exports = { + output: { + library: `${packageName}-[name]`, + libraryTarget: 'umd', + chunkLoadingGlobal: `webpackJsonp_${packageName}`, + }, +}; +``` + +If using Webpack v4: ```js const packageName = require('./package.json').name;