forked from marko-js/isomorphic-ui-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.js
34 lines (29 loc) · 783 Bytes
/
init.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var path = require("path");
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = "production";
}
require("lasso").configure({
plugins: [
{
plugin: "lasso-marko",
config: {
output: "vdom"
}
}
],
bundlingEnabled: false,
minify: false, //isProduction ? true : false,
fingerprintsEnabled: false,
urlPrefix: (process.env.URL_PREFIX || "") + "/static",
outputDir: path.join(__dirname, "build/static")
});
require("lasso/node-require-no-op").enable(".less", ".css");
require("marko/express");
require("@babel/register")({
// and .js so you'll have to add them back if you want them to be used again.
extensions: [".jsx"]
});
require("marko/node-require").install();
require("marko/compiler").configure({
assumeUpToDate: false
});