在Visual Studio Code 运行 webpack .srcmain.js --output-filename .distbundle.js --output-path . --mo...

mac2022-06-30  61

在Visual Studio Code 运行

webpack ./src/main.js --output-filename ./dist/bundle.js --output-path . --mode development

提示  Module no t found:Error:Can't resolve' 'jquery'

是因为Visual Studio Code还没安装jquery 

在项目目录运行

cnpm i jquery

安装jquery就可以了

转载于:https://www.cnblogs.com/songsongblue/p/11480891.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)