forked from briandunn/mandel.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrunch-config.js
41 lines (40 loc) · 866 Bytes
/
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
// See http://brunch.io for documentation.
const commonRequireDefinition = require('commonjs-require-definition');
exports.config = {
files: {
javascripts: {
joinTo: {
'app.js': /^(node_modules|app\/.*\.(?:gl|js))/,
'worker.js': ['app/chunk.js', 'app/complex.js', 'app/worker.js']
},
order: {
after: [/\.gl$/]
}
},
stylesheets: {joinTo: 'app.css'}
},
modules: {
wrapper: (path, data) => {
if(path === 'worker.js')
return data
else
return {
prefix: `require.define({'${path}': function(exports, require, module) {`,
data: data,
suffix: '}});'
}
}
},
plugins: {
text: {
pattern: /\.gl$/
},
babel: {
presets: ["es2015", "react"]
}
},
npm: {
enabled: true,
detectProcess: false
}
};