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
- sass-resource-loader implementation is done. Updated read me according to new config. [`cc97ef5`](https://github.com/hepsiburada/VoltranJS/commit/cc97ef506b03be4db82c0044b12301a22eb97085)
Development mode. Set to `true` if you need to debug.
219
206
220
207
`Default`: `false`
221
208
222
209
#### distFolder
210
+
223
211
The path to the folder where bundled scripts will be placed after the build.
224
212
225
213
`Default`: `./dist`
226
214
227
215
#### publicDistFolder
216
+
228
217
The path to the folder where asset files will be placed after the build.
229
218
230
219
`Default`: `./dist/assets`
231
220
232
221
#### inputFolder
222
+
233
223
The path to the folder that contains script files. It's required.
234
224
235
225
Passes this config to Babel Loader where it reads all js files under this folder.
236
226
237
227
'Voltran' converts your files to the appropriate format and optimizes them.
238
228
239
229
#### monitoring
230
+
240
231
For now, only prometheus is supported.
232
+
241
233
```
242
234
monitoring: {
243
235
prometheus: false
244
236
}
245
237
```
238
+
246
239
> or you can set your custom js file.
247
240
248
241
```
@@ -252,23 +245,29 @@ monitoring: {
252
245
```
253
246
254
247
#### port
248
+
255
249
`Default`: `3578`
250
+
256
251
> If you want to change the port
257
252
> you may need to change the port in appConfigFiles
258
253
259
254
#### prefix
255
+
260
256
`It is required.`
261
257
262
258
There may be different components owned by different teams using voltrans on the same page. Voltran needs to use a prefix in order to avoid conflicts issues.
263
259
This prefix is prepended to initial states and CSS class names.
260
+
264
261
> We recommend that each team use their own acronyms/prefixes.
265
262
266
263
#### ssr
264
+
267
265
`Default`: `true`
268
266
Voltran supports server side rendering.
269
267
Applications that need 'SEO' features needs to set this parameter to `true`.
270
268
271
269
#### styles
270
+
272
271
This field's value should be an array of strings. Array values should be the paths to the global CSS files.
273
272
274
273
```
@@ -279,6 +278,7 @@ styles: [
279
278
```
280
279
281
280
### output
281
+
282
282
```
283
283
output: {
284
284
client: {
@@ -295,6 +295,7 @@ output: {
295
295
```
296
296
297
297
#### staticProps
298
+
298
299
You can pass static props to all components at the same time.
You can add your webpack configuration. They will be merged with the voltran configs.
323
326
324
327
You can access the starter kit we created from the [link](https://github.com/hepsiburada/VoltranJS-Starter-Kit).
325
328
329
+
#### sassResources
330
+
331
+
You can add sass resources to this field as string array. sass-resource-loader gonna inject those files in every sass files so you won't need to import them.
332
+
333
+
You can check [sass-resource-loader](https://github.com/shakacode/sass-resources-loader) for usage.
334
+
326
335
## Tech
327
336
328
337
Voltran uses a number of open source projects to work properly:
329
338
330
-
*[ReactJS] - A JavaScript library for building user interfaces!
331
-
*[Webpack] - Module bundler
332
-
*[babel] - The compiler for next generation JavaScript.
333
-
*[node.js] - evented I/O for the backend
334
-
*[hiddie] - fast node.js network app framework (friendly fork of [middie](https://github.com/fastify/middie))
335
-
*[Yarn] - the streaming build system
336
-
339
+
-[ReactJS] - A JavaScript library for building user interfaces!
340
+
-[Webpack] - Module bundler
341
+
-[babel] - The compiler for next generation JavaScript.
342
+
-[node.js] - evented I/O for the backend
343
+
-[hiddie] - fast node.js network app framework (friendly fork of [middie](https://github.com/fastify/middie))
344
+
-[Yarn] - the streaming build system
337
345
338
346
## Contributing
339
347
@@ -343,8 +351,6 @@ Voltran uses a number of open source projects to work properly:
343
351
4. Push to the branch: `git push origin my-new-feature`
0 commit comments