@webmodule/serve
v5.7.1
Published
@webmodule/serve -- serve scripts and stylesheets from modules ==============================================================
Downloads
18
Readme
@webmodule/serve -- serve scripts and stylesheets from modules
Make this works with the help of an express middleware:
import MyClass from "/node_modules/name";
or
@import "/node_modules/name";
Usage
const serveModule = require("@webmodule/serve");
app.use(serveModule({prefix: "/", root: "."}));
Limitations
Use only for development.
Throws an error when express app env is not.