-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrunch-config.js
63 lines (62 loc) · 1.34 KB
/
brunch-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
const prod = process.env.NODE_ENV ? process.env.NODE_ENV=='production' : false
const minJsCss = prod ? '.min' : ''
const vuetifySrc = prod ? 'js' : 'dist'
let arCopyCSS = ['node_modules/vuetify/dist/vuetify'+minJsCss+'.css']
let arCopyJS = ['node_modules/vuetify/dist/vuetify'+minJsCss+'.js', 'node_modules/vue/dist/vue.runtime'+minJsCss+'.js']
if(!prod) {
arCopyJS.push('node_modules/vuetify/dist/vuetify.js.map')
arCopyCSS.push('node_modules/vuetify/dist/vuetify.css.map')
}
module.exports = {
files: {
javascripts: {
joinTo: {
'vendor.js': /^(?!app)/, // Files that are not in `app` dir.
'app.js': /^app/,
},
},
stylesheets: {
joinTo: {
'css/app.css': /^app/
}
},
templates: {
joinTo: 'app.js'
}
},
server: {
path: 'server.js'
},
plugins: {
stylus: {
modules: false
},
pug: {
locals: { MIN: minJsCss , VUETIFY_SRC: vuetifySrc},
preCompile: true
},
babel: {
presets: [
['env'],
['stage-2']
],
comments: false
},
vue: {
extractCSS: true,
out: 'public/css/components.css'
},
copyfilemon:{
'css': arCopyCSS,
'js': arCopyJS
},
uglify: {
mangle: true,
compress: {
global_defs: {
DEBUG: false
}
}
}
}
}