-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile-production.js
48 lines (45 loc) · 1.18 KB
/
gulpfile-production.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
42
43
44
45
46
47
48
// For all available options, see node_modules/pho-devstack/config.js
// These are production build settings, see gulpfile.js for development settings
var gulp = require('gulp');
var extend = require('node.extend');
var substituteConfig = require('./substitute-config');
var pho = require('pho-devstack')(gulp, {
src: {
styleMain: 'main.{scss,sass}',
styleFiles: '**/*.{scss,sass}'
},
browserify: {
debug: false,
transforms: {
"browserify-ngmin": true,
uglifyify: true
}
},
livereload: {
enabled: false
},
plumber: {
enabled: false
},
rename: {
enabled: true
},
watch: {
enabled: false
},
spritesPreprocessor: {
enabled: true,
prefix: '../images/sprites/' // change this to prefix path before sprites. '/images/sprites/' for absolute paths
},
base64: {
// baseDir: 'src', // uncomment if you are using absolute paths
enabled: true
},
substituter: extend(true, substituteConfig, {
// cdn: 'http://example.com' // url to your CDN server
// cdn: '/', // uncomment if you are using absolute paths without CDN
}),
copy: ['humans.txt']
});
// If needed, redefine tasks here
require('./sass-support')(pho);