We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example file:
//= require handler=json src/json/myJSON.json
Example build process:
gulp.src([ 'src/js/file.src.js', ]) .pipe(include({ typeHandlers: { json: function (fileContent) { return 'list.push(JSON.parse("'+escapeJSON(fileContent)+'"));'; } } })) .pipe(rename('file.js')) .pipe(gulp.dest('assets/js/'));
My current method for inserting JSON:
list.push( //= require src/json/myJSON.json ); //Pray that it works
The text was updated successfully, but these errors were encountered:
Ditto, this would be a great addition to this package. I would use this feature immediately.
Sorry, something went wrong.
No branches or pull requests
Example file:
//= require handler=json src/json/myJSON.json
Example build process:
My current method for inserting JSON:
The text was updated successfully, but these errors were encountered: