Webpack Lighthouse插件指南
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-lighthouse-plugin');
85.48KB
文件大小:
评论区