1.0.0 • Published 5 years ago

x.import v1.0.0

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
5 years ago

x.import

x.import exports a method for the gulp.

Installation

$ npm install x.import --save

Usage

var gulp = require('gulp');
gulp.import = require('x.import');

Example

In your gulpfile.js:

var gulp = require('gulp'),
xImport = require('x.import');

gulp.task('defaults', function () {
   gulp.src('./src/**/*.{css,js,html}')
        .pipe(xImport())
        .pipe(gulp.dest('build'))
});

In your *.css

/* import("path"); */
body{
}

In your *.html

<body>
<!-- import("path"); -->
</body>

In your *.js

// import("path");
...

License

Apache License 2.0