Design comparison
Solution retrospective
Hi everyone,
For my first challenge, I make this social media dashboard with theme switcher using Webpack, SASS and JS. Please let me feedback on the structure in my code. I'm always looking for improvment in my code as I'm still learning front-end dev !
Thank you
Community feedback
- @dpineda64Posted over 4 years ago
Hi, Wissem good job, only some comments... seems like your js code doesn't need the jquery, I would suggest extracting your code from the "app" var and removing the dependency, so your bundle does not become heavier with unnecessary deps. And with the webpack config its a good idea to have a "common" config file where your entry points, rules and plugins necessary to build your app reside, and separate file(s) where you extend your common config for dev or prod, that way you can maintain a SSOT and avoid problems when deploying to prod because you forgot to added X alias/entry to the config
0@Wiss69Posted over 4 years ago@dpineda64 Thank you for your feedback I really appreciate your remarks so I will improve my code skills.
Best regards
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord