-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.js
32 lines (32 loc) · 1.01 KB
/
build.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
// jshint -W033
(function () {
"use strict";
return {
appDir: "./public",
baseUrl: "./javascript",
dir: "build",
optimizeCss: "standard",
paths: {
requirejs: "../bower_components/requirejs/require",
react: "../bower_components/react/react",
text: "../bower_components/jsx-requirejs-plugin/js/text",
jsx: "../bower_components/jsx-requirejs-plugin/js/jsx",
JSXTransformer: "../bower_components/jsx-requirejs-plugin/js/JSXTransformer-0.10.0"
},
preserveLicenseComments: false,
// Remove any occurrences of jsx! prefix for JSX imports
onBuildWrite: function (moduleName, path, contents) {
return contents.replace(/jsx!/g, '');
},
useStrict: true,
modules: [
{
"name": "email_signature_generator",
"exclude": ["jsx"]
},
{
"name": "requirejs"
}
]
};
})()