README
x.import-pro
- 添加针对项目绝对路径支持
- 添加 html 内支持 javascript css 样式文件引入
- 修复 js css 正则表达式 匹配错误问题
- 添加 文件未找到 提示错误显示
- 增加对ejs的支持
项目基于 x.import 修复部分问题
x.import-pro
exports a method for the gulp
.
Installation
$ npm install x.import-pro --save
Usage
var gulp = require('gulp');
gulp.import = require('x.import-pro');
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