|
|
|
@ -21,16 +21,16 @@ app.use(express.static(__dirname));
|
|
|
|
|
app.use("/examples", express.static(`${__dirname}/../examples`));
|
|
|
|
|
|
|
|
|
|
app.get("/bundle.js", (req, res) => {
|
|
|
|
|
let files = glob.sync(`${__dirname}/**/*.js`, {
|
|
|
|
|
ignore: `${__dirname}/vendor/**/*`
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
browserify(files)
|
|
|
|
|
.transform(babelify, { presets: "env", compact: false })
|
|
|
|
|
.bundle()
|
|
|
|
|
.pipe(res);
|
|
|
|
|
let files = glob.sync(`${__dirname}/**/*.js`, {
|
|
|
|
|
ignore: `${__dirname}/vendor/**/*`
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
browserify(files)
|
|
|
|
|
.transform(babelify, { presets: "env", compact: false })
|
|
|
|
|
.bundle()
|
|
|
|
|
.pipe(res);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
app.listen(8000, () => {
|
|
|
|
|
console.log("Benchmark server running at http://localhost:8000...");
|
|
|
|
|
console.log("Benchmark server running at http://localhost:8000...");
|
|
|
|
|
});
|
|
|
|
|