jeffhou / W_Web_IdleGame_ProductivityCounter

A clicker game based on creating productivity!
1 stars 1 forks source link

Investigate how to precompile Babel before deployment #15

Closed jeffhou closed 6 years ago

jeffhou commented 6 years ago

Context

We have a working web app, but there are limitations and warnings. We currently are using hosted versions of multiple frameworks.

Need

  1. Babel keeps displaying a warning that we should You are using the in-browser Babel transformer. Be sure to precompile your scripts for production.
  2. I'm currently using hosted Babel (cdn) and that doesn't work when I don't have internet.

Solution

Set up pre-compilation with downloaded babel. Solves both problems.

Task

Investigate how to precompile Babel.

Deliverable

  1. Report on how to precompile Babel.
    1. Instructions and Plan for precompiling Babel.
  2. New task for setting up precompile Babel.
  3. If need a build system, figure out which one to use and create new task for setting up build system.

Notes

Hopefully setting up precompiling and build system solves everything here.

jeffhou commented 6 years ago

using just babel-cli to compile. installed babel and ran script to compile