用于Lighthouse的Webpack插件-JavaScript开发

时间:2024-06-14 19:19:06
【文件属性】:

文件名称:用于Lighthouse的Webpack插件-JavaScript开发

文件大小:85KB

文件格式:ZIP

更新时间:2024-06-14 19:19:06

JavaScript Bundlers

Webpack Lighthouse插件此插件可让您从Webpack构建中运行Lighthouse。 安装npm install --save-dev webpack-lighthouse-plugin在webpack.config.js中安装:const WebpackLightho Webpack Lighthouse插件该插件允许您从Webpack构建中运行Lighthouse。 安装npm install --save-dev webpack-lighthouse-plugin在webpack.config.js中设置:const WebpackLighthousePlugin = require('webpack-lighthouse-plugin'); module.exports = {...插件:[new WebpackLighthousePlugin({url:'http:// localhost:9001'})],...}示例插入到webpack.config.js中:const WebpackLighthousePlugin = require(' webpack


【文件预览】:
webpack-lighthouse-plugin-master
----.gitignore(71B)
----.eslintrc(910B)
----package.json(1KB)
----package-lock.json(252KB)
----src()
--------webpack-lighthouse-plugin.js(3KB)
--------lighthouse-bin.js(6KB)
----LICENSE(11KB)
----README.md(4KB)
----test()
--------webpack.config.js(1006B)
--------dist()
--------.DS_Store(6KB)
--------sample.js(656B)

网友评论