constHtmlMinimizerPlugin=require("html-minimizer-webpack-plugin");constCopyPlugin=require("copy-webpack-plugin");module.exports={module:{rules:[{test:/\.html$/i,type:"asset/resource",},],},plugins:[newCopyPlugin({patterns:[{context:path.resolve(__dirname,"dist"),from:"./src/*.html",},...
该插件使用来优化和缩小HTML。 入门 首先,您需要安装html-minimizer-webpack-plugin : $ npm install html-minimizer-webpack-plugin --save-dev 然后将插件添加到您的webpack配置中。 例如: webpack.config.js const HtmlMinimizerPlugin = require ( "html-minimizer-webpack-plugin" ) ; const CopyPlugin =...
none npm icss-minimizer-webpack-plugin-sass-loader-ariel-html-webpack-plugin Repository github.com/mayangsari0/apremainteamur 1 Version 1.2.3 License ISC Unpacked Size 1.27 kB Last publish a year ago Collaborators Tryon RunKit Reportmalware...