静态js文件修改没有热更新
Niefee opened this issue · 3 comments
Niefee commented
在/src/static/lib.js
中修改文件,提示Ignored an update to unaccepted module...
,代码没有更新到,console.log
没有打印出内容。
HiuYanChong commented
unaccepted module
, 看这提示是分析到这个文件没有被项目引用到,更新直接忽略。
项目是怎么使用引入这个文件的?
Niefee commented
在redux文件/src/actions/getData.js
中import { fn } from '../static/lib.js'
,在index.js
中 import {get} from '../actions/getData.js'
。