TypeError: CleanwebpackPlugin is not a constructor

前端 未结 10 2129
感动是毒
感动是毒 2021-01-01 08:39

i\'m trying to preview a vue web application through webpack-server-dev.I\'m following this guide https://medium.com/the-web-tub/creating-your-first-vue-js-pwa-project-22f7

10条回答
  •  长情又很酷
    2021-01-01 08:41

    I had the same problem, and I solved it in the following way:

    
        const { CleanWebpackPlugin } = require('clean-webpack-plugin');
    
    
    
        plugins: [
            new CleanWebpackPlugin({
                cleanAfterEveryBuildPatterns: ['dist']
            })
        ]
    
    

提交回复
热议问题