You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var postcss = require('gulp-postcss');
var styleguide = require('postcss-style-guide');
var postcssimport = require('postcss-import');
gulp.task('styleguide', function () {
gulp.src(path.css_src + '**/*.css')
.pipe(postcss([
precss(),
postcssimport(),
styleguide({
project: 'styleguide',
dest: './styleguide/index.html'
})
]))
});
styleguide task seems to be working, tho nothing is printed in the generated HTML file.
[11:03:03] Starting 'styleguide'...
[11:03:03] Finished 'styleguide' after 5.85 ms
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Successfully created style guide!
Any thoughts on what I might be doing wrong?
The text was updated successfully, but these errors were encountered:
@hisako135 postcss-style-guide expects only one input to output one html file in PostCSS build flow, so it depends on postcss-import or postcss-partial-import to squash some files. If you are using PreCSS (includes postcss-partial-import, so you need not use postcss-import), you can set one CSS file that includes all @imports.
Here's my styleguide task.
styleguide task seems to be working, tho nothing is printed in the generated HTML file.
Any thoughts on what I might be doing wrong?
The text was updated successfully, but these errors were encountered: