Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Mike Surowiec a24d01f78a
Fix NextJS 500s (#20048)
2 years ago
..
3df90fc9b8
Hello git history spelunker!
3 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
e377d74419
React: import necessary javascripts directly (#20001)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
e26a3446a7
SubLanding page filter (#19918)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
e377d74419
React: import necessary javascripts directly (#20001)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
5396f5f9e4
React: All landing pages (#19943)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
75f90c9487
Update current JavaScripts to use Typescript (#19824)
2 years ago
a24d01f78a
Fix NextJS 500s (#20048)
2 years ago

README.md

You have to be logged in to leave a comment. Sign In

Javascripts

The code in this directory is destined to run in a web browser!

The index.js file in this directory is bundled by Webpack. In development, we use webpack-dev-middleware to bundle automatically while running the server. In production, we run webpack --mode production via npm run build.

This file is then referenced in the footer:

<script src="/dist/index.js"></script>

Every other file in this directory is written as a module to be required in index.js. They all have this format:

module.exports = () => {
  // Do some cool browser stuff
  // Note: by the time this runs, the DOM will be ready. :)
}

In development, the bundle will recompile every time a file used by javascripts/index.js is changed. This ensures that you're always getting an up-to-date version of the script.

In production, the bundle is compiled during build-time.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...