sitemap-webpack-plugin:Webpack插件生成站点地图

时间:2021-05-02 09:00:31
【文件属性】:
文件名称:sitemap-webpack-plugin:Webpack插件生成站点地图
文件大小:591KB
文件格式:ZIP
更新时间:2021-05-02 09:00:31
sitemap webpack webpack-plugin TypeScript sitemap-webpack-plugin Webpack插件可从路径列表生成站点地图。 安装 npm install sitemap-webpack-plugin --save-dev 对于webpack 4或5,请使用最新版本。 对于<= 3的webpack,请使用版本0.5.x。 用法 添加到您的webpack配置中-参见下面的示例。 插件签名为: new SitemapPlugin({ base, paths, options }) base是您网站的根URL(例如https://mysite.com ) paths是您网站上位置的数组。 这些可以是简单的字符串,或者如果您想自定义每个条目,则可以提供对象。 对象必须具有path属性,并且可能具有记录的其他属性。 options是*配置设置的可选对象。 选项 插件构造函数的options参数中可以提供以下选项。 该库在使
【文件预览】:
sitemap-webpack-plugin-master
----package.json(2KB)
----.eslintrc.json(211B)
----test()
--------webpack-3()
--------cases()
--------helpers.test.ts(474B)
--------webpack-4()
--------webpack-5()
--------utils()
--------errors.test.ts(1KB)
----.prettierrc(3B)
----.prettierignore(15B)
----jest.config.ts(152B)
----src()
--------helpers.ts(3KB)
--------schema.json(4KB)
--------generators.ts(2KB)
--------types.ts(640B)
--------index.ts(4KB)
----tsconfig.json(358B)
----.gitignore(97B)
----CHANGELOG.md(4KB)
----.circleci()
--------config.yml(854B)
----README.md(6KB)
----yarn.lock(201KB)
----.eslintignore(25B)
----rollup.config.ts(370B)
----LICENSE.txt(1KB)

网友评论