Package Exports
- gulp-marko-render
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-marko-render) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-rev
A Gulp plugin for Marko template engine.
Install
$ npm install --save-dev gulp-marko-render
Usage
const gulp = require('gulp');
const markoRender = require('gulp-marko-render');
gulp.task('default', () =>
gulp.src('src/*.marko')
.pipe(markoRender())
.pipe(gulp.dest('dist'))
);
With Marko Options
const gulp = require('gulp');
const markoRender = require('gulp-marko-render');
gulp.task('default', () =>
gulp.src('src/*.marko')
.pipe(markoRender({
writeToDisk: false,
preserveWhitespace: true,
ext: "html"
}))
.pipe(gulp.dest('dist'))
);