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
All of the CSS you load via Webpack is run through [Autoprefixer](https://github.com/postcss/autoprefixer).
160
+
All of the CSS you load via Webpack is run through [Autoprefixer].
159
161
Use a [Browserslist](https://github.com/ai/browserslist) value to specify which browsers you need to support with vendor prefixes.
160
162
161
163
### postcssPlugins
162
164
163
165
`Array<Function>` - Optional.
164
166
165
167
All of the CSS you load via Webpack is run through [PostCSS](http://postcss.org/), so you can apply any [PostCSS plugins](https://github.com/postcss/postcss/blob/master/docs/plugins.md) to it.
166
-
By default, only [Autoprefixer](https://github.com/postcss/autoprefixer) is applied.
168
+
By default, only [Autoprefixer] is applied.
167
169
168
170
This value is passed directly to [postcss-loader](https://github.com/postcss/postcss-loader#plugins).
169
171
@@ -181,6 +183,20 @@ Provide any of the following [jsxtreme-markdown] options (please read about them
181
183
182
184
**To add syntax highlighting to your Markdown pages, you'll probably want to use `remarkPlugins` or `rehypePlugins`.**
183
185
186
+
### inlineJs
187
+
188
+
`Array<Object>` - Optional.
189
+
190
+
If you want to inline JS into static HTML before the Webpack bundle, this is the best way to do it.
191
+
192
+
On the development server, they will be added at the beginning of the Webpack bundle for debugging (sourcemaps should be available).
193
+
For the static build, they will be injected directly into the `<head>`.
194
+
195
+
Each item is an object with the following properties:
196
+
197
+
-**filename**`string` - Absolute path to the JS file.
198
+
-**uglify**`boolean` - Default: `true`. Whether or not to process the file with [UglifyJs] before inserting into the `<head>` during the static build.
199
+
184
200
### production
185
201
186
202
`boolean` - Optional. Default: `false` for `start`, `true` for `build`
@@ -193,3 +209,6 @@ Whether or not to build for production (e.g. minimize files, trim React).
193
209
194
210
Preferred port for development servers.
195
211
If the specified port is unavailable, another port is used.
0 commit comments