-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulp.config.js
More file actions
41 lines (37 loc) · 1.11 KB
/
gulp.config.js
File metadata and controls
41 lines (37 loc) · 1.11 KB
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
"use strict";
module.exports = function () {
let client = "src/client/",
clientApp = client + "app/",
dist = "dist/",
port = 9000;
let url = require('url'),
proxy = require('proxy-middleware'),
proxyOptions = url.parse('http://localhost:3000/api');
proxyOptions.route = '/api';
return {
client: client,
dist: dist,
files: {
clientIndexHtml: client + "index.html",
mainLess: clientApp + "less/app.style.less",
js: [clientApp + "**/*.js", "!" + clientApp + "**/*.spec.js"],
template: [clientApp + "**/*.html"],
less: clientApp + "**/*.less"
},
bs: {
server: {
baseDir: dist,
middleware: [proxy(proxyOptions)],
routes: {
"/bower_components": "bower_components",
"/app": clientApp
}
},
port: port,
open: false,
notify: false,
ghostMode: false,
logPrefix: "BrowserSync"
}
};
};