You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+31-9Lines changed: 31 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,11 +38,23 @@ module.exports = (on) => {
38
38
39
39
### browserifyOptions
40
40
41
-
Object of options passed to [browserify](https://github.com/browserify/browserify#browserifyfiles--opts).
41
+
Object of options passed to [browserify](https://github.com/browserify/browserify#browserifyfiles--opts).
42
42
43
-
If you pass one of these top-level options in, it will override the default. So if pass `extensions: ['.cljs']`, the default extensions (`js, jsx, coffee, cjsx`) will no longer be supported. If you wish to add to the supported extensions, read up on [modifying the default options](#modifying-default-options).
43
+
```javascript
44
+
// example
45
+
browserify({
46
+
browserifyOptions: {
47
+
extensions: ['.js', '.ts'],
48
+
plugin: [
49
+
['tsify']
50
+
]
51
+
}
52
+
})
53
+
```
54
+
55
+
If you pass one of the top-level options in (`extensions`, `transform`, etc), it will override the default. In the above example, browserify will process `.js` and `.ts` files, but not `.jsx`, `.coffee`, or `.cjsx`. If you wish to add to or modify existing options, read about [modifying the default options](#modifying-default-options).
44
56
45
-
As long as the config passed from Cypress indicates that the plugin should watch files, [watchify](https://github.com/browserify/watchify) is automatically configured as a plugin, so there's no need to manually specify it.
57
+
[watchify](https://github.com/browserify/watchify) is automatically configured as a plugin (as needed), so it's not necessary to manually specify it.
46
58
47
59
**Default**:
48
60
@@ -52,28 +64,37 @@ As long as the config passed from Cypress indicates that the plugin should watch
Object of options passed to [watchify](https://github.com/browserify/watchify#options)
76
88
89
+
```javascript
90
+
// example
91
+
browserify({
92
+
watchifyOptions: {
93
+
delay:500
94
+
}
95
+
})
96
+
```
97
+
77
98
**Default**:
78
99
79
100
```javascript
@@ -84,7 +105,7 @@ Object of options passed to [watchify](https://github.com/browserify/watchify#op
84
105
'**/.sass-cache/**',
85
106
'**/bower_components/**',
86
107
'**/coverage/**',
87
-
'**/node_modules/**',
108
+
'**/node_modules/**'
88
109
],
89
110
}
90
111
```
@@ -94,6 +115,7 @@ Object of options passed to [watchify](https://github.com/browserify/watchify#op
94
115
A function that is called with the [browserify bundle](https://github.com/browserify/browserify#browserifyfiles--opts). This allows you to specify external files and plugins. See the [browserify docs](https://github.com/browserify/browserify#baddfile-opts) for methods available.
0 commit comments