We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38dd773 commit fc1d72dCopy full SHA for fc1d72d
1 file changed
preview-src/index.adoc
@@ -97,6 +97,20 @@ vfs
97
<.> Wrap each streaming file in a buffer so the files can be processed by uglify.
98
Uglify can only work with buffers, not streams.
99
100
+Here's the same code with the `wrap` role added, which enables pre-wrap, if that's your speed.
101
+
102
+[.wrap,js]
103
+----
104
+vfs
105
+ .src('js/vendor/*.js', { cwd: 'src', cwdbase: true, read: false })
106
+ .pipe(tap((file) => {
107
+ file.contents = browserify(file.relative, { basedir: 'src', detectGlobals: false }).bundle()
108
+ }))
109
+ .pipe(buffer())
110
+ .pipe(uglify())
111
+ .pipe(gulp.dest('build'))
112
113
114
Execute these commands to validate and build your site:
115
116
$ podman run -v $PWD:/antora:Z --rm -t antora/antora \
0 commit comments