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
{{ message }}
This repository was archived by the owner on Oct 31, 2024. It is now read-only.
- Bumps to Typescript 3.0
- Adds local Typescript version to VSCode config
- Updates README with build mode instructions, and fixes some info
- Removes deprecated `no-unused-variable` setting from TSLint
Copy file name to clipboardExpand all lines: README.md
+22-12
Original file line number
Diff line number
Diff line change
@@ -29,30 +29,30 @@ Clone, and make your own.
29
29
30
30
### Real-time
31
31
32
-
- Hot code reloading; zero refresh, real-time updates in development
33
-
- Development web server that automatically sends patches on code changes, and restarts the built-in Web server for SSR renders that reflect what you'd see in production
32
+
- Hot code reloading; zero refresh, real-time updates in development.
33
+
- Development web server that automatically sends patches on code changes, and restarts the built-in Web server for SSR renders that reflect what you'd see in production.
34
34
35
35
### Code optimisation
36
36
37
-
-[Webpack v4](https://webpack.js.org/), with [tree shaking](https://webpack.js.org/guides/tree-shaking/)(dead code paths are automatically eliminated
38
-
- Asynchronous code loading when `import()`'ing inside a function
39
-
- Aggressive code minification
37
+
-[Webpack v4](https://webpack.js.org/), with [tree shaking](https://webpack.js.org/guides/tree-shaking/)-- dead code paths are automatically eliminated.
38
+
- Asynchronous code loading when `import()`'ing inside a function.
39
+
- Aggressive code minification.
40
40
- CSS code is combined, minified and optimised automatically - even if you use SASS, LESS and CSS together!
41
41
42
42
### Styles
43
43
44
44
-[Styled Components](https://www.styled-components.com/), for writing CSS styles inline and generating the minimal CSS required to properly render your components. Full type inference on themes, too.
45
-
-[PostCSS v6](http://postcss.org/) with [next-gen CSS](http://cssnext.io/) and automatic vendor prefixing when importing `.css`, `.scss` or `.less` files
46
-
-[SASS](http://sass-lang.com) and [LESS](http://lesscss.org/) support (also parsed through PostCSS)
47
-
- Automatic vendor prefixing - write modern CSS, and let the compiler take care of browser compatibility
45
+
-[PostCSS v6](http://postcss.org/) with [next-gen CSS](http://cssnext.io/) and automatic vendor prefixing when importing `.css`, `.scss` or `.less` files.
46
+
-[SASS](http://sass-lang.com) and [LESS](http://lesscss.org/) support (also parsed through PostCSS.)
47
+
- Automatic vendor prefixing - write modern CSS, and let the compiler take care of browser compatibility.
48
48
- Mix and match SASS, LESS and regular CSS - without conflicts!
49
-
- CSS modules - your classes are hashed automatically, to avoid namespace conflicts
50
-
- Compatible with Foundation, Bootstrap, Material and more. Simply configure via a `.global.(css|scss|less)` import to preserve class names
49
+
- CSS modules - your classes are hashed automatically, to avoid namespace conflicts.
50
+
- Compatible with Foundation, Bootstrap, Material and more. Simply configure via a `.global.(css|scss|less)` import to preserve class names.
51
51
52
52
### Production-ready
53
53
54
-
- Production bundling via `npm run production`, that generates optimised server and client code
55
-
-[Static compression](https://webpack.js.org/plugins/compression-webpack-plugin/) using the [Zopfli Gzip](https://en.wikipedia.org/wiki/Zopfli) and [Brotli](https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html) algorithms for the serving of static assets as pre-compressed `.gz` and `.br` files (default `vendor.js.bz` goes from 346kb -> 89kb!)
54
+
- Production bundling via `npm run production`, that generates optimised server and client code.
55
+
-[Static compression](https://webpack.js.org/plugins/compression-webpack-plugin/) using the Gzip and [Brotli](https://opensource.googleblog.com/2015/09/introducing-brotli-new-compression.html) algorithms for the serving of static assets as pre-compressed `.gz` and `.br` files (default `vendor.js.bz` goes from 346kb -> 89kb!)
56
56
- Automatic HTTP hardening against common attack vectors via [Koa Helmet](https://github.com/venables/koa-helmet) (highly configurable)
57
57
58
58
### Developer support
@@ -138,6 +138,16 @@ Files will be generated in `./dist`, and a server will also be spawned at [http:
138
138
139
139
Clean the cached production build with `npm run clean`, or run `npm run clean-production` to both clean and re-run the production build.
140
140
141
+
# Build mode
142
+
143
+
If you only want to build assets and not actually run the server, use:
144
+
145
+
```
146
+
npm run build
147
+
```
148
+
149
+
This is used in the [Dockerfile](Dockerfile), for example, to pre-compile assets and ensure faster start-up times when spawning a new container.
150
+
141
151
# Follow @reactql for updates
142
152
143
153
Get the latest updates by following us on Twitter: https://twitter.com/reactql
0 commit comments