-
Notifications
You must be signed in to change notification settings - Fork 5
/
init.js
41 lines (35 loc) · 1022 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
35
36
37
38
39
40
41
var path = require('path');
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = 'production';
}
var isProduction = process.env.NODE_ENV === 'production';
require('lasso').configure({
plugins: [
{
plugin: 'lasso-marko',
config: {
output: 'vdom'
}
},
{
plugin: 'minprops/lasso',
enabled: isProduction
}
],
bundlingEnabled: false,
minify: false,//isProduction ? true : false,
fingerprintsEnabled: false,
outputDir: path.join(__dirname, 'build/static')
});
require('require-self-ref');
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('lasso/node-require-no-op').enable('.less', '.css');
require('marko/compiler').configure({
assumeUpToDate: false
});