Skip to content

Commit 142072d

Browse files
committed
update examples
1 parent 11a2163 commit 142072d

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = (on, config) => {
2-
on('task', require('../../../../task'))
2+
require('../../../../task')(on, config)
3+
// IMPORTANT to return the config object
4+
// with the any changed environment variables
5+
return config
36
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
module.exports = (on, config) => {
2-
on('task', require('../../../../task'))
2+
require('../../../../task')(on, config)
3+
// IMPORTANT to return the config object
4+
// with the any changed environment variables
5+
return config
36
}

examples/same-folder/plugins.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = (on, config) => {
2-
on('task', require('../../task'))
2+
require('../../task')(on, config)
33
on('file:preprocessor', require('../../use-babelrc'))
4+
return config
45
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = (on, config) => {
2-
on('task', require('../../../../task'))
2+
require('../../../../task')(on, config)
33
on('file:preprocessor', require('../../../../use-babelrc'))
4+
return config
45
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = (on, config) => {
2-
on('task', require('../../../../task'))
2+
require('../../../../task')(on, config)
3+
return config
34
}

0 commit comments

Comments
 (0)