如何使用webpack构建缩小和未压缩的捆绑包?
2022-08-30 00:26:40
这是我的webpack.config.js
var webpack = require("webpack");
module.exports = {
entry: "./entry.js",
devtool: "source-map",
output: {
path: "./dist",
filename: "bundle.min.js"
},
plugins: [
new webpack.optimize.UglifyJsPlugin({minimize: true})
]
};
我正在与
$ webpack
在我的文件夹中,我只得到dist
bundle.min.js
bundle.min.js.map
我还想看看未压缩的bundle.js