I'm an experienced full stack developer with a frontend focus, backed by a strong track record of crafting robust and elegant code. Passionate, dedicated, and motivated, I'm ready to take on the next
Yes like a professional. You can't use CRA for production apps.
Edit: The comment above is misleading and i apologize for that. You can use CRA in production, but for me, CRA is just a quick prototyping tool that i don't use in production.
I thought these CLI toolchains (Angular, React, Vue, all have them) not only eased app bootstrapping, but also ensured optimization and best practices.
Don't get me wrong, I understand there are genuine configuration-related reasons to build from scratch. I also believe we all should know how to build our apps without CLI aid, as it serves not only to understand the whole process, but to debug potential issues too.
However, I am truly curious about why you think CRA should not be used for production. Would you say this also applies to Vue and Angular?
Thank you for the article. but your code snippets are completely confusing: const HTMLplugin = require(‘html-webpack-plugin’) declared but later new HTMLwebpackplugin is used.
Why do you say "like a professional"? You're saying using CRA is not "professional"?
Yes like a professional. You can't use CRA for production apps.
Edit: The comment above is misleading and i apologize for that. You can use CRA in production, but for me, CRA is just a quick prototyping tool that i don't use in production.
The react and vue cli tools are both leveraged for more production apps than you can imagine
Yes that's true and i apologize for my misleading comment.
No sweat, we're all here to learn together. Keep the articles coming!
Please, elaborate.
I thought these CLI toolchains (Angular, React, Vue, all have them) not only eased app bootstrapping, but also ensured optimization and best practices.
Don't get me wrong, I understand there are genuine configuration-related reasons to build from scratch. I also believe we all should know how to build our apps without CLI aid, as it serves not only to understand the whole process, but to debug potential issues too.
However, I am truly curious about why you think CRA should not be used for production. Would you say this also applies to Vue and Angular?
Thank you for the article. but your code snippets are completely confusing:
const HTMLplugin = require(‘html-webpack-plugin’)declared but laternew HTMLwebpackpluginis used.<html lang=”en”><head>
<title>React boilerplate</title>
</head>
<body>
<div id=’root’></div>
import React from ‘react’And finally this line -
entry: path.join(__dirname, ‘src’ ‘index.js’),what is the path you are passing to the join?‘src’ ‘index.js’???Friend your project is sick of bad! If you work that way with clients, better dedicate yourself to study!