https://github.com/jakecyr/simple-requirejs
A simplified RequireJS library to import JavaScript within each other
https://github.com/jakecyr/simple-requirejs
import javascript require requirejs vanilla-javascript
Last synced: 11 months ago
JSON representation
A simplified RequireJS library to import JavaScript within each other
- Host: GitHub
- URL: https://github.com/jakecyr/simple-requirejs
- Owner: jakecyr
- Created: 2018-07-09T13:34:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T13:40:31.000Z (almost 8 years ago)
- Last Synced: 2025-01-17T09:35:46.554Z (over 1 year ago)
- Topics: import, javascript, require, requirejs, vanilla-javascript
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple-RequireJS
A simplified RequireJS library to import JavaScript files within each other
### Setup
To setup and use the Simple RequireJS library download the "require.js" file or clone this repo.
Add the following HTML tag in your main HTML file:
```
```
Replacing "scripts.js" with the entry point to your JavaScript application and updating the path of the "require.js" file based on where you placed it.
In your JavaScript files, simply use:
```
require("./anotherFile.js")
```
to include that file in the final JavaScript that is executed.