![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
webpack
zc自由飞~
这个作者很懒,什么都没留下…
展开
-
webpack-bundle-analyzer打包分析工具
先安装yarn add webpack-bundle-analyzer;在vue.config.js里边添加下边代码:module.exports = { chainWebpack: config => { config .plugin('webpack-bundle-analyzer') .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin) }}package.json里边增加脚本原创 2022-01-11 11:03:58 · 356 阅读 · 0 评论 -
一个简单的webpack.config.js配置
const path = require('path');const HtmlWebpackPlugin = require('html-webpack-plugin');module.exports={ entry: './src/index.js',//把src的index.js作为入口进行打包 output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist') },.原创 2021-02-26 13:56:14 · 151 阅读 · 0 评论