forked from robbestad/learn-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
83 lines (83 loc) · 2.51 KB
/
config.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
module.exports = {
build: {
vendor: {
// Will be concantinated and included in index.html before app bundle.
js: [],
// Will be included as an includePath for @import statements
scss: [
// Bootstrap is included by default and can be used with
// `@import "bootstrap"`
'./node_modules/bootstrap-sass/assets/stylesheets'
]
},
browserify: {
// Browserify will search through these paths for `require`s
paths: [
'./public/src',
'./node_modules'
],
// Will append source maps if true (Generally overridden in production
// config as `false`)
debug: true
},
// Will be rimraffed before builds and whatnot on a task-required basis
clean: {
// Before copy task...
copy: ['./public/dist/assets', './public/dist/index.html'],
// Before scripts task...
scripts: ['./public/dist/app.js'],
// Before styles task...
styles: ['./public/dist/app.css'],
// Before vendor task...
vendor: ['./public/dist/vendor.js']
},
// Minify css after built from scss? (Generally overridden in production
// config as `true`)
cssmin: false,
// Uglify js after bundle? (Generally overridden in production config as
// `true`)
uglify: false
},
server: {
// Port to run on. Overridden by PORT env variable or port passed as an
// option to index.js
port: 3000,
// The URI to use to connect to the app's mongodb. Overridden by MONGOLAB_URI
// env variable
mongodbURI: 'mongodb://localhost/test',
// Enable verbose logging on incoming requests? (If this creates a bottle-
// neck, it's recommended to only enable this in development)
verbose: true
},
// Merges into config if NODE_ENV is development
development: {
build: {
vendor: {
js: [
'./node_modules/es5-shim/es5-shim.js',
'./node_modules/jquery/dist/jquery.js',
'./public/src/lib/ajax-put-delete.jquery.js',
'./node_modules/bootstrap/dist/js/bootstrap.js'
]
}
}
},
// Merges into config if NODE_ENV is production
production: {
build: {
vendor: {
js: [
'./node_modules/es5-shim/es5-shim.min.js',
'./node_modules/jquery/dist/jquery.min.js',
'./public/src/lib/ajax-put-delete.jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js'
]
},
cssmin: true,
uglify: true,
browserify: {
debug: false
}
}
}
};