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);
node include.js
or using nodemon to watch file changes inside src folder.
nodemon -w src -e js include.js
Edit the include.py
config.
python include.js
Why not?