/includejs

Manually-ish Include JS files into another JS file.

Primary LanguageJavaScript

IncludeJS

include JS files into another JS file.

Use the @include to include the JS file.

// somefile.js
const config = "JUSTACONFIG";

// base.js
@include("somefile.js");
console.log(config);

The result should be

// build.js
const config = "JUSTACONFIG";
console.log(config);

How to use

NodeJS

node include.js

or using nodemon to watch file changes inside src folder.

nodemon -w src -e js include.js

Python

Edit the include.py config.

python include.js

But why frozeeen, why?

Why not?