search

Home  >  Q&A  >  body text

javascript - How to set webpack to compress js css but not compress html

The code is as follows. This was written by someone else. I want to add the function of compressing js and css but not compressing html

迷茫迷茫2841 days ago898

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-06-05 11:14:42

    Settings: minify: false, and add plugins new webpack.optimize.UglifyJsPluginCompress js, optimize-css-assets-webpack-pluginCompress css

    reply
    0
  • Cancelreply