Closed quantuminformation closed 6 years ago
Thanks! good idea.Could you please assist me with some tips to figure out how it would be necessary to replace webpack with react-scripts-ts?
I'll get your project running and see if I can convert it if you like?
I installed it by following these instructions:
npm install -g create-react-app
create-react-app my-app --scripts-version=react-scripts-ts
and you will get
You should be able to copy over the dependencies for the scripts (and other files like tslint, tsconfig) and run your project without using your custom webpack.
Your custom webpack works fine, but by using CRA, you might make your app appeal to a wider react audience.
Perfect 👍 you are awesome . I like that.
I had a bash at this
https://github.com/QuantumInformation/react-social-network/tree/CRA but got this
I built your tree but I didn't get that error. On the whole this tree needs many change to work. By the way I edited this tree and it compiled. However I would have error in runtime. There are something that web pack does in the project which I can't figure out in CRA tree.
Great work, maybe we can get another CRA expert to advise?
Perfect. Sure there is supporting for sass in create-react-app. For absolute path, this idea could make it happen. We also could use this idea for node environment variables.
They finds look good.
So I've been using https://github.com/wmonk/create-react-app-typescript with react 16 and material UI next for a custom project. It all works quite nice together. I think create-react-app-typescript would be one of the best way to make the config for this project cleaner and give you better test server out the box.
I agree with Nikos, Using create-react-app-typescript is more simple, instead of configuring the from scratch the webpack.
Moved on create-react-app merged.
FYI
https://github.com/wmonk/create-react-app-typescript