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
We recognize that this is suboptimal, but it is currently required due to the way we hide the ESLint dependency. The ESLint team is already [working on a solution to this](https://github.com/eslint/eslint/issues/3458) so this may become unnecessary in a couple of months.
@@ -270,15 +277,16 @@ If you are concerned about using Webpack-specific semantics, you can put all you
270
277
271
278
## Post-Processing CSS
272
279
273
-
This project setup minifies your CSS and adds vendor prefixes to it automatically through [Autoprefixer](https://github.com/postcss/autoprefixer) so you don’t need to worry about it.
280
+
This project setup minifies your CSS and use [less.js](https://github.com/less/less.js) to transform css file then adds vendor prefixes to it automatically through [Autoprefixer](https://github.com/postcss/autoprefixer) so you don’t need to worry about it.
274
281
275
282
For example, this:
276
283
277
284
```css
285
+
@center: center;
278
286
.App {
279
287
display: flex;
280
288
flex-direction: row;
281
-
align-items: center;
289
+
align-items: @center;
282
290
}
283
291
```
284
292
@@ -299,7 +307,7 @@ becomes this:
299
307
}
300
308
```
301
309
302
-
There is currently no support for preprocessors such as Less, or for sharing variables across CSS files.
310
+
There is currently only support less preprocessors.
303
311
304
312
## Adding Images and Fonts
305
313
@@ -970,14 +978,14 @@ Install the Surge CLI if you haven't already by running `npm install -g surge`.
Success! Project is published and running at create-react-app.surge.sh
988
+
Success! Project is published and running at create-magic-component.surge.sh
981
989
```
982
990
983
991
Note that in order to support routers that use HTML5 `pushState` API, you may want to rename the `index.html` in your build folder to `200.html` before deploying to Surge. This [ensures that every URL falls back to that file](https://surge.sh/help/adding-a-200-page-for-client-side-routing).
### You need to develop your component in component folder.
4
-
### When dist your component, component folder's file .js|.jsx will use babel to transform, .css file will use less and autoprefixer to transform. other file will copy to dist folder.
5
-
### Componet folder will transform and publish to npm.
3
+
### You need to develop your component in components folder.
4
+
### When dist your component, components folder's file .js|.jsx will use babel to transform, .css file will use less and autoprefixer to transform. other file will copy to dist folder.
5
+
### componets folder will transform and publish to npm.
0 commit comments