forked from baires/shouldideploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrunch-config.js
More file actions
44 lines (43 loc) · 1.15 KB
/
Copy pathbrunch-config.js
File metadata and controls
44 lines (43 loc) · 1.15 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
42
43
44
// See http://brunch.io for documentation.
module.exports.files = {
javascripts: {
joinTo: {
'vendor.js': /^(?!app)/, // Files that are not in `app` dir.
'app.js': /^app/,
},
},
stylesheets: {joinTo: 'app.css'},
};
module.exports.plugins = {
babel: {presets: ['latest']},
htmlPages: {
htmlMin: {
caseSensitive: false,
collapseBooleanAttributes: true,
collapseInlineTagWhitespace: false,
collapseWhitespace: true,
conservativeCollapse: false,
html5: true,
includeAutoGeneratedTags: false,
keepClosingSlash: false,
minifyCSS: true,
minifyJS: true,
preserveLineBreaks: false,
preventAttributesEscaping: false,
processConditionalComments: true,
removeAttributeQuotes: true,
removeComments: true,
removeEmptyAttributes: true,
removeOptionalTags: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true,
sortAttributes: true,
sortClassName: true,
},
destination(path) {
return path.replace(/^app[\/\\](.*)\.html$/, '$1.html');
},
disabled: false,
compileAssets: true,
},
};