从dll到hard-source-webpack-plugin
2019-12-20 本文已影响0人
web_柚子小记
![](https://img.haomeiwen.com/i6865935/f7a327bf26cad2e6.png)
![](https://img.haomeiwen.com/i6865935/02ed2a668261c2de.png)
![](https://img.haomeiwen.com/i6865935/b755eee142d24561.png)
-------------------------------------------------------------------------------------------------
![](https://img.haomeiwen.com/i6865935/2e325e27c30d70ae.png)
![](https://img.haomeiwen.com/i6865935/32941c20241f80bd.png)
-------------------------------------------------------------------------------------------------
![](https://img.haomeiwen.com/i6865935/9695229d92c0dae3.png)
![](https://img.haomeiwen.com/i6865935/016e061168ec9889.png)
![](https://img.haomeiwen.com/i6865935/fed3763218e62de0.png)
-------------------------------------------------------------------------------------------------
引入hard-source-webpack-plugin:
npm install --save-dev hard-source-webpack-plugin
const HardSourceWebpackPlugin = require('hard-source-webpack-plugin');
module.exports = {
// ...... plugins: [
new HardSourceWebpackPlugin()
]}