1.5.1 • Published 4 years ago

x.import-pro v1.5.1

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

x.import-pro

  1. 添加针对项目绝对路径支持
  2. 添加 html 内支持 javascript css 样式文件引入
  3. 修复 js css 正则表达式 匹配错误问题
  4. 添加 文件未找到 提示错误显示
  5. 增加对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

1.5.1

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago