gulp-normalize-html-for-in-css
v0.1.3
Published
Change async modules load to sync in browser.
Downloads
3
Readme
gulp-normalize-html-for-in-css
Change async modules load to sync in browser. For lilacs.
how to use
1. install
npm install --save gulp-normalize-html-for-in-css
2. use
var normalize = require("gulp-normalize-html-for-in-css");
normalize(options)
Example:
gulp.task("default", function () {
return gulp.src('path/to/html')
pipe(normalize({
baseUrl : './test/fixtures/',
configFile: './test/in-css-config.js',
entryModules: ['test/index'],
tagSelector: '[data-in-css-tag]'
}))
.pipe(gulp.dest("./tmp"));
});
3. options
- baseUrl: base url of all css resources
- paths: module path declaration
- deps: modules dependencies
- configFile: in-css config file path
- entryModules: in-css modules
- tagSelector: in-css tag selector (to be removed)