-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.cypress.js
46 lines (44 loc) · 883 Bytes
/
webpack.cypress.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
const webpack = require('webpack');
const merge = require('webpack-merge');
const common = require('./webpack.base.js');
module.exports = merge.smartStrategy(
{
'module.rules.use': 'prepend'
}
)(common, {
mode: 'production',
entry: {
app: ['aurelia-bootstrapper'],
},
stats: 'errors-only',
module: {
rules: [
{
test: /\.scss$/,
use: [
{
loader: require.resolve('style-loader')
}
]
},
{
test: /\.tsx?$/,
use: [
{
loader: 'ts-loader',
options: {
configFile: 'tsconfig.json',
}
}
]
}
]
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
// NOTE(Jake): 2019-01-09
// Without this, running "cypress open" doesn't work.
maxChunks: 1,
})
]
});