1
有没有办法用我自己的libs,webpack configs,dotfiles等扩展美妙的create-react-app
,但保持最新?如何扩展create-react-app?
我的意思是,我想要eject
它,然后根据我的需要打磨它,但是获得最新的更新没有很大的痛苦,即手动跟踪回购,寻找差异,复制和粘贴等等。
有没有办法用我自己的libs,webpack configs,dotfiles等扩展美妙的create-react-app
,但保持最新?如何扩展create-react-app?
我的意思是,我想要eject
它,然后根据我的需要打磨它,但是获得最新的更新没有很大的痛苦,即手动跟踪回购,寻找差异,复制和粘贴等等。
是的,其实你可以!你要做的就是,你叉,修改和发布react-scripts
和指那些与create-react-app
脚手架时:
$ create-react-app my-app --scripts-version react-scripts-fork
Here you can read more about react-scripts
.
Here is an article about how to fork and modify react-scripts
to your own needs.
这可能是custom-react-scripts
业已实施,你在找什么因为,即SASS或修饰者。 Here is an article about custom-react-scripts
和here is the package。