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
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
Copy file name to clipboardExpand all lines: packages/razzle-plugin-typescript/README.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,7 @@ Using the plugin with the default options
14
14
// razzle.config.js
15
15
16
16
module.exports= {
17
-
plugins: [
18
-
'typescript'
19
-
],
17
+
plugins: ['typescript'],
20
18
};
21
19
```
22
20
@@ -41,7 +39,7 @@ module.exports = {
41
39
tslint:'./tslint.json',
42
40
watch:'./src',
43
41
typeCheck:true,
44
-
}
42
+
},
45
43
},
46
44
},
47
45
],
@@ -50,19 +48,19 @@ module.exports = {
50
48
51
49
## Options
52
50
53
-
__useBabel: _boolean___ (defaults: false)
51
+
**useBabel: _boolean_** (defaults: false)
54
52
55
53
Set `useBabel` to `true` if you want to keep using `babel` for _JS_/_TS_ interoperability, or if you want to apply any babel transforms to typescript files. (i.e.: [`babel-plugin-styled-components`](https://github.com/styled-components/babel-plugin-styled-components)).
56
54
57
-
__useEslint: _boolean___ (defaults: true)
55
+
**useEslint: _boolean_** (defaults: true)
58
56
59
57
Note: This option is ignored if `useBabel` is set to `false`.
60
58
Set `useEslint` to `false` if you want to use `babel` for transforms but do not wish to use eslint.
Use this to override [`ts-loader`](https://github.com/TypeStrong/ts-loader) options. Check all the options here: [ts-loader options](https://github.com/TypeStrong/ts-loader#loader-options).
Use this to override [`fork-ts-checker-webpack-plugin`](https://github.com/Realytics/fork-ts-checker-webpack-plugin) options. Check all the options here: [fork-ts-checker-webpack-plugin options](https://github.com/Realytics/fork-ts-checker-webpack-plugin#options).
Copy file name to clipboardExpand all lines: packages/razzle/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ Razzle comes with [Create React App's ESLint configuration](https://github.com/f
171
171
*`process.env.HOST`: default is `0.0.0.0`
172
172
*`process.env.NODE_ENV`: `'development'` or `'production'`
173
173
*`process.env.BUILD_TARGET`: either `'client'` or `'server'`
174
-
*`process.env.PUBLIC_PATH`: Only in used in `razzle build`. You can alter the `webpack.config.output.publicPath` of the client assets (bundle, css, and images). This is useful if you plan to serve your assets from a CDN. Make sure to _include_ a trailing slash (e.g. `PUBLIC_PATH=https://cdn.example.com/`). If you are using React and altering the public path, make sure to also [include the `crossorigin` attribute](https://reactjs.org/docs/installation.html#using-a-cdn) on your `<script>` tag in `src/server.js`.
174
+
*`process.env.PUBLIC_PATH`: Only in used in `razzle build`. You can alter the `webpack.config.output.publicPath` of the client assets (bundle, css, and images). This is useful if you plan to serve your assets from a CDN. Make sure to _include_ a trailing slash (e.g. `PUBLIC_PATH=https://cdn.example.com/`). If you are using React and altering the public path, make sure to also [include the `crossorigin` attribute](https://reactjs.org/docs/cdn-links.html#why-the-crossorigin-attribute) on your `<script>` tag in `src/server.js`.
175
175
176
176
You can create your own custom build-time environment variables. They must start
177
177
with `RAZZLE_`. Any other variables except the ones listed above will be ignored to avoid accidentally exposing a private key on the machine that could have the same name. Changing any environment variables will require you to restart the development server if it is running.
@@ -317,9 +317,9 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
317
317
318
318
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
0 commit comments