-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gitbook] update gitbook for archetype styles (#704)
* update gitbook for archetype styles * update gitbook * Update the doc * Update the doc
- Loading branch information
Showing
4 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
docs/chapter1/intermediate/app-archetype/extract-styles.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Extract Styles | ||
|
||
Application Archetype supports multiple styles, such as pure CSS, [CSS-Modules + CSS-Next](https://github.com/css-modules/css-modules), [Stylus](http://stylus-lang.com/docs/css-style.html) and [SCSS](http://sass-lang.com/). Use the following flags to choose your desired styles. | ||
|
||
## Flags | ||
|
||
> Note: You can check how to customize the configs [here](/chapter1/intermediate/app-archetype/customize-config.md#extending-webpack-configurations). | ||
- `cssModuleSupport`: A flag to enable `css-modules + css-next` support. | ||
- <span style="color:red">**[Deprecated Warning] This is not a recommended set up.**</span> `cssModulesStylusSupport`: A flag to enable `stylus` support with CSS modules. (Default: false) | ||
|
||
## Style Use Cases | ||
|
||
- To use pure CSS, include `*.css` to your styles folder and set `cssModuleSupport` to false. | ||
- To use CSS-Modules + CSS-Next, include `*.css` to your styles folder. | ||
|
||
- To use Stylus, include `*.styl` to your styles folder. | ||
- To use Stylus along with CSS-Modules + CSS-Next, include `*.styl` to your styles folder and set `cssModuleSupport` to true. | ||
|
||
- To use SCSS, include `*.scss` to your styles folder. | ||
- To use SCSS along with CSS-Modules + CSS-Next, include `*.scss` to your styles folder and set `cssModuleSupport` to true. |