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
@@ -110,10 +110,10 @@ An asset manifest, mapping the original paths to the revisioned paths, will be w
110
110
By default, `rev-manifest.json` will be replaced as a whole. To merge with an existing manifest, pass `merge: true` and the output destination (as `base`) to `rev.manifest()`:
111
111
112
112
```js
113
-
constgulp=require('gulp');
114
-
constrev=require('gulp-rev');
113
+
importgulpfrom'gulp';
114
+
importrevfrom'gulp-rev';
115
115
116
-
exports.default= () => (
116
+
exportdefault () => (
117
117
// By default, Gulp would pick `assets/css` as the base,
@@ -135,12 +135,12 @@ You can optionally call `rev.manifest('manifest.json')` to give it a different p
135
135
Because of the way `gulp-concat` handles file paths, you may need to set `cwd` and `path` manually on your `gulp-concat` instance to get everything to work correctly:
136
136
137
137
```js
138
-
constgulp=require('gulp');
139
-
constrev=require('gulp-rev');
140
-
constsourcemaps=require('gulp-sourcemaps');
141
-
constconcat=require('gulp-concat');
138
+
importgulpfrom'gulp';
139
+
importrevfrom'gulp-rev';
140
+
importsourcemapsfrom'gulp-sourcemaps';
141
+
importconcatfrom'gulp-concat';
142
142
143
-
exports.default= () => (
143
+
exportdefault () => (
144
144
gulp.src('src/*.js')
145
145
.pipe(sourcemaps.init())
146
146
.pipe(concat({path:'bundle.js', cwd:''}))
@@ -163,13 +163,13 @@ Since the order of streams are not guaranteed, some plugins such as `gulp-concat
163
163
This plugin does not support streaming. If you have files from a streaming source, such as Browserify, you should use [`gulp-buffer`](https://github.com/jeromew/gulp-buffer) before `gulp-rev` in your pipeline:
0 commit comments