Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use assets bundler and proper dependency manager #235

Open
blazeu opened this issue Oct 24, 2017 · 0 comments
Open

Use assets bundler and proper dependency manager #235

blazeu opened this issue Oct 24, 2017 · 0 comments

Comments

@blazeu
Copy link
Member

blazeu commented Oct 24, 2017

See https://medium.freecodecamp.org/javascript-modules-part-2-module-bundling-5020383cf306

TL;DR

  • Having many <script> and <style> tags sucks and makes loading slow
  • Combine all assets into a single .js & .css file (Webpack preferred)
  • Since we're probably gonna use ES2015 modules to import modules/scripts, we can write all the codes in ES2015+ and have Babel + Webpack integrations to transpile the code into current version of JavaScript that is widely supported by current browsers
  • Yarn/NPM(v5) is currently the recommended dependency manager for front-end (previously only for backend Node.js)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants