1.0.0 • Published 5 years ago
@dogatana/honkit-plugin-styles-sass v1.0.0
SASS Stylesheets for Honkit
This plugin makes it easy to use SASS custom stylesheets instead of CSS for your book.
Add it to your book.json, with some custom stylesheets:
{
"plugins": ["@dogatana/styles-sass"],
"styles": {
"pdf": "./styles/pdf.sass"
}
}Fork of gitbook-plugin-styles-sass
honkit-plugin-styles-sass is a fork of https://github.com/GitbookIO/plugin-styles-sass
Gitbook is now deprecated and node-sass 3.4.1 seems too old to use now.
This plugin aims to be used with Honkit.
Changes from gitbook-plugin-styles-sass
- update version of dependencies
- outputStyle of node-sass is
expanedby default - outputStyle can be specified in book.json
{
"pluginsConfig": {
"styles-sass": {
"outputStyle": "compressed"
}
}
}- outputStyle must be one of
nested,expanded,compactandcompressed - remove DateTime string from the name of output
- directory path is preserved as specified in book.json
ex) In the following case, _book/styles/website/sample.css will be stored.
{
"styles": {
"website": "styles/website/sample.scss"
}
}- input .scss and .sass files are not copied to _book
1.0.0
5 years ago