Node.js + Webpack5 后端开发

2020-12-28 02:26

阅读:600

标签:desktop   开发   安装   报错   兼容   dev   因此   type   webp   

Webpack5的变化

  1. 开箱即用webpack serve命令,只需要安装webpack-dev-server就可以直接启用了。
Usage: webpack s | serve
Description: Run the webpack Dev Server

此时,npx webpack-dev-server命令会报错,因此它只兼容Webpack4,不过Webpack5可以使用它:

Cannot find module ‘webpack-cli/bin/config-yargs‘
Require stack:
- C:\Users\ly\Desktop\TypeScript\node_modules\webpack-dev-server\bin\webpack-dev-server.js

Node.js + Webpack5 后端开发

标签:desktop   开发   安装   报错   兼容   dev   因此   type   webp   

原文地址:https://www.cnblogs.com/develon/p/13852019.html


评论


亲,登录后才可以留言!