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
[MINOR] CSS-Modules + CSS-Next to be supported on the archetype by default (#5)
* CSS-Modules + CSS-Next to be supported on the archetype by default
* extend archetype functionality so that it also has support for stylus, by default archetype supports css-modules + css-next
* ternary condition to check for false
* support legacy use-case of stylus
* linter fix
* clean up file exists check with glob
@@ -118,10 +118,12 @@ This archetype assumes an architecture as follows:
118
118
```
119
119
demo/
120
120
demo.jsx
121
-
demo.styl
121
+
demo.css
122
122
src
123
123
components/
124
124
*.jsx
125
+
styles/
126
+
*.css
125
127
index.js
126
128
test
127
129
client/
@@ -137,15 +139,10 @@ package.json
137
139
138
140
## CSS Modules + CSS next
139
141
140
-
By default, this archetype assumes you are using Stylus and `.styl` files containing Global CSS. If you want to use `CSS-Modules + CSS-Next`, you need opt-in and use `.css` files. This archetype does not support using Stylus and `CSS-Modules + CSS-Next` together. You can opt-in to `CSS-Modules + CSS-Next` by adding a config section to your project's package.json and setting the necessary `env` variable to true:
142
+
By default, this archetype assumes you are using CSS-Modules + CSS-Next, you need
143
+
to opt-in to stylus support by adding a `*.styl` to your *project's*`demo/demo.styl` & `src/styles/*.styl`
0 commit comments