Closed hisako135 closed 8 years ago
@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 @import
s.
e.g.
app.css
:
@import "module-1.css";
@import "module-2.css";
@import "module-3.css";
gulpfile.js
:
// other tasks
gulp.task('styleguide', function () {
gulp.src(path.css_src + 'app.css')
.pipe(postcss([
precss(),
styleguide({
project: 'styleguide',
dest: './styleguide/index.html'
})
]))
});
Thank you for your report :)
Thank you so much for an in-depth explanation! Feel free to close this issue.
Thanks. keep up the good work :)
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?