
前端
一只Huskie
这个作者很懒,什么都没留下…
展开
-
解决:webpack中使用devServer无法自动刷新浏览器页面,无法热加载
webpack中使用devServer无法自动刷新浏览器页面,无法热加载个人认为是版本问题,下面是我的版本"webpack": "^5.36.1","webpack-cli": "^4.6.0","webpack-dev-server": "^3.11.2"解决方案,修改webpack.config.js的配置如下:devServer: { contentBase: resolve(__dirname, 'build'), compress: true,原创 2021-05-01 15:16:38 · 714 阅读 · 0 评论 -
webpack使用postcss-larder报错:ValidationError: Invalid options object. PostCSS Loader has...的解决方案
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.- options has an unknown property ‘plugins’. These properties are valid:object { postcssOptions?, execute?, sourceMap?原创 2021-04-29 19:14:34 · 3060 阅读 · 1 评论