forked from felin-arch/emarsys-integration-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.config.js
31 lines (30 loc) · 840 Bytes
/
tasks.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
'use strict';
module.exports = {
server: {
runnable: 'fake-server/server.js'
},
client: {
app: {
target: 'dist/',
buildPattern: [{
pattern: 'client/app/!(*.spec).js',
splitVendor: false
}],
testPattern: 'client/**/*.spec.js',
testModules: [
'client/setup-tests.spec.js'
],
loaders: [
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/, query: { presets: ['es2015'] }},
{ test: /\.js$/, loader: 'exports-loader', exclude: /node_modules/ },
{ test: /\.js$/, loader: 'imports?define=>false', exclude: /node_modules/ },
{ test: /\.js$/, loader: 'imports-loader', exclude: /node_modules/ },
{ test: /\.json$/, loader: 'json-loader' }
]
}
},
s3: {
copyPattern: 'dist/**/*',
withGzip: true
}
};