Thomas Vantuycom
Thomas Vantuycom
Pass the `fix` option to `gulp-standard`: ```js gulp.task('standard', ['scripts'], function () { return gulp.src(['./dist/app.js']) .pipe(standard({ fix: true })) .pipe(standard.reporter('default', { breakOnError: true, quiet: true, showRuleNames: true, showFilePath: false })) })...
I think one way to proceed is to chain the rewrite task several times in a row with different manifest files.
I believe you tried using the `flatten` package, and not `gulp-flatten`. ``` npm install gulp-flatten --save-dev ``` ```js var flatten = require('gulp-flatten'); ```
That's because the plugin is looking to replace `"js/ci/plan-sort.js"`, not `"ci/plan-sort"`. You can use the [`modifyUnreved` and `modifyReved` options](https://github.com/jamesknelson/gulp-rev-replace#optionsmodifyunreved-optionsmodifyreved) to remove the leading `js/` folder and the `.js` extension.
I tried reproducing weilinzung's case, but replacement in JSON files works just fine here. Could you provide the gulp task you're using, and your `rev-manifest.json`?
Yes, but can you show the gulp task that you're using? It's hard to guess what you're doing wrong otherwise.
The list of globs that you pass to `gulp.src` should be an array, like this: ```js gulp.src(['_site/**/*.jpg','_site/**/*.png','_site/**/*.json','_site/**/*.js','_site/**/*.css','_site/**/*.xml']) ```
Have you tried using a `rev-manifest.json` file as described [here](https://github.com/sindresorhus/gulp-rev/issues/214#issuecomment-299587683)?
@akixi-johnathonclark Do you have examples of common xml lines in which a filename appears just after ``?
Do you mean a situation where you have a file `日本語.jpg` and a uri-encoded reference to it in your html like `%e6%97%a5%e6%9c%ac%e8%aa%9e.jpg`? Because in that case you could use the...