Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我使用的是npm run mp ,之后每次修改代码保存后,编译的速度都很慢,每次在10s 左右 , #2

Open
xingher opened this issue Dec 31, 2019 · 1 comment

Comments

@xingher
Copy link

xingher commented Dec 31, 2019

每次修改,保存后,都跟npm run mp 做的事情是一样的,都要经历 从0% - 100%

@zairl23
Copy link

zairl23 commented Apr 25, 2020

@xingher
可以在文件build/webpack.mp.js中的配置中的第一级加一个缓存选项:

module.exports = {
  ...
  cache: true,
  ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants