Closed justinbmeyer closed 7 years ago
I worked on fixing the build, making sure the conditionally loaded modules get their own bundles
https://github.com/stealjs/steal-conditional/pull/13
I had some code using the boolean syntax already, I updated that to the new steal-conditional and steal@rc, steal-tools@rc.
https://github.com/m-mujica/steal-conditional-boolean-example
I thought the example wasn't nice and decided to try with the custom elements polyfill which proved to be tricky to get working
https://github.com/m-mujica/bitovi-projects-grid
The build is broken but I don't think it's related to steal-conditional.
(*) The build for this syntax should also be working fine
I fixed the build :D
guides merged and published, closing....
Create the following guides:
polyfill -
fetch
exampleProduction
Loads main-bundle.js ... runs conditionals, if browser doesn't support what's needed, will load side bundles individually before getting started.
Waterfall requests OK because only effect "bad" browsers.
internationalization
Make it so something like the following works:
Steal-tools builds out to something like:
Future thoughts
could write out like:
dist/{lang}/{language}/main.js
and be loaded for production like:
<script src="dist/en/EN/main.js"/>
Or in the future, we could allow people to write out their script tags like: