webpack4.x-learn
webpack4.x-learn copied to clipboard
下载完项目后本地运行有问题,copy-webpack-plugin报错应该是静态文件夹名字错了。
报错信息
ERROR in [copy-webpack-plugin] unable to locate '/Users/lt/Desktop/webpack/webpack4_mpa_demo/src/static' at '/Users/lt/Desktop/webpack/webpack4_mpa_demo/src/static'
src下的是assets文件夹,所以可以将webpack.base.conf.js下第84行的地址"../src/static“改成"../src/assets"。这样项目就正常了。
我看一下,之前应该漏了
发自我的小米手机 在 lwpwyf [email protected],2019年10月27日 20:44写道:
报错信息 ERROR in [copy-webpack-plugin] unable to locate '/Users/lt/Desktop/webpack/webpack4_mpa_demo/src/static' at '/Users/lt/Desktop/webpack/webpack4_mpa_demo/src/static'
src下的是assets文件夹,所以可以将webpack.base.conf.js下第84行的地址"../src/static“改成"../src/assets"。这样项目就正常了。
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/wlx200510/webpack4.x-learn/issues/13?email_source=notifications&email_token=AENWROR5B7PIGXDK6IVJJDTQQWELFA5CNFSM4JFRRCKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HUTFNIQ, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AENWRORMTEMLI6QIP5WR4ITQQWELFANCNFSM4JFRRCKA.