BaseT browser environment plugin
Browser environment plugin for BaseT project.
Installation and usage
Run:
npm install --save-dev baset-env-browser
and adding next lines to baset.plugins
section in your package.json
or plugins
section in your .basetrc
/.basetrc.json
:
".spec.js$": ["baset-env-browser", "baset-baseliner-json"],
".spec.ts$": ["baset-env-browser", "baset-reader-ts", "baset-baseliner-json"]
You may also use static files server, by specifying at least one of following options,
"baset-env-browser": {
"serverPort": 1337,
"staticFolder": "./path/to/your/static/files"
}
This config will run express.static server at http://localhost:1337/
that will serve files from staticFolder
.
In most cases it's not needed, but sometimes (e.g. for PIXI loaders) it could be necessary, because framework/library may heavily depend on fetching some files from server.