rajdee / posthtml-classes Goto Github PK
View Code? Open in Web Editor NEWPostHTML-plugin to retrieve a list of classes from html
License: MIT License
PostHTML-plugin to retrieve a list of classes from html
License: MIT License
Hi,
I suppose there is a bug when using glob in gulp.src()
to match multiple html files.
I've got 75 html files, and some CSS classes are the same, but there are unique CSS classes in every html file too. I use gulp.src('*.html')
to match every html file, but the plugin doesn't copy classes from every file.
Looks like the plugin only gets classes from the last file in array.
My gulpfile.js is as following:
var gulp = require('gulp'),
posthtml = require('gulp-posthtml');
gulp.task('default', function () {
return gulp.src('*.html')
.pipe(posthtml([
require('posthtml-classes')({
fileSave: true,
filePath: './classList.css',
overwrite: true,
eol: '\n',
nested: true,
elemPrefix: '__',
modPrefix: '--',
modDlmtr: '-',
curlbraces: true
})
]));
});
Gulp v3.9.1
Node v4.4.3
npm v2.15.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.