hint
/
prepros.config
883 строки · 20.8 Кб
1{
2"version": "7",
3"about": "This is a Prepros (https://prepros.io) configuration file. You can commit this file to a git repo to backup and sync project configurations.",
4"config": {
5"proxy": {
6"enable": false,
7"target": "",
8"useLocalAssets": false
9},
10"reload": {
11"enable": true,
12"delay": 0,
13"animate": true,
14"afterUpload": false
15},
16"sync": {
17"enable": false,
18"mouse": true,
19"keyboard": true,
20"form": true,
21"scroll": true
22},
23"watcher": {
24"enable": true,
25"maxFiles": 2000,
26"usePolling": false,
27"pollingInterval": 500,
28"extensions": [
29".html",
30".htm",
31".php"
32],
33"ignore": {
34"patterns": [
35".*",
36"wp-admin",
37"wp-includes",
38"node_modules",
39"Prepros Export",
40"bower_components"
41],
42"exceptions": []
43}
44},
45"exporter": {
46"ignore": {
47"patterns": [
48".*",
49"desktop.ini",
50"prepros.cfg",
51"node_modules",
52"Prepros Export",
53"prepros.config",
54"prepros-6.config",
55"*-original.jpg",
56"*-original.jpeg",
57"*-original.png",
58"*-original.svg",
59"*.scss",
60"*.sass",
61"*.less",
62"*.pug",
63"*.jade",
64"*.styl",
65"*.haml",
66"*.slim",
67"*.coffee",
68"*.kit",
69"*.turf",
70"*.ts"
71],
72"exceptions": []
73}
74},
75"uploader": {
76"remotePath": "",
77"timeout": 20000,
78"autoUpload": false,
79"reuseConnection": true,
80"connectionType": "ftp",
81"exportHistory": true,
82"history": []
83},
84"packages": {
85"createPackageLock": true
86},
87"images": {
88"preserveOriginal": true
89},
90"tasks": {
91"autoprefixer": {
92"cascade": true,
93"add": true,
94"remove": true,
95"supports": true,
96"flexbox": true,
97"grid": "autoplace",
98"browsers": [
99"last 2 versions"
100],
101"sourceMap": false
102},
103"babel": {
104"sourceMap": false,
105"presets": {
106"@babel/preset-env": {
107"enable": true,
108"options": {
109"targets": [
110"last 2 versions"
111],
112"preserveImports": false,
113"polyfills": false
114}
115},
116"@babel/preset-react": true,
117"@babel/preset-flow": false
118},
119"plugins": {
120"@babel/plugin-proposal-class-static-block": false,
121"@babel/plugin-proposal-class-properties": false,
122"@babel/plugin-proposal-decorators": {
123"enable": false,
124"options": {
125"decoratorsBeforeExport": true
126}
127},
128"@babel/plugin-proposal-export-namespace-from": false,
129"@babel/plugin-proposal-function-sent": false,
130"@babel/plugin-proposal-logical-assignment-operators": false,
131"@babel/plugin-proposal-nullish-coalescing-operator": false,
132"@babel/plugin-proposal-numeric-separator": false,
133"@babel/plugin-proposal-optional-chaining": false,
134"@babel/plugin-proposal-private-methods": false,
135"@babel/plugin-proposal-throw-expressions": false
136},
137"customPresets": [],
138"customPlugins": []
139},
140"bundle-js": {
141"sourceMap": false,
142"exclude": [
143"node_modules",
144"bower_components"
145],
146"devMode": true,
147"globals": [],
148"externals": [],
149"babel": {
150"enable": true,
151"options": {
152"sourceMap": false,
153"presets": {
154"@babel/preset-env": {
155"enable": true,
156"options": {
157"targets": [
158"last 2 versions"
159],
160"preserveImports": false,
161"polyfills": false
162}
163},
164"@babel/preset-react": true,
165"@babel/preset-flow": false
166},
167"plugins": {
168"@babel/plugin-proposal-class-static-block": false,
169"@babel/plugin-proposal-class-properties": false,
170"@babel/plugin-proposal-decorators": {
171"enable": false,
172"options": {
173"decoratorsBeforeExport": true
174}
175},
176"@babel/plugin-proposal-export-namespace-from": false,
177"@babel/plugin-proposal-function-sent": false,
178"@babel/plugin-proposal-logical-assignment-operators": false,
179"@babel/plugin-proposal-nullish-coalescing-operator": false,
180"@babel/plugin-proposal-numeric-separator": false,
181"@babel/plugin-proposal-optional-chaining": false,
182"@babel/plugin-proposal-private-methods": false,
183"@babel/plugin-proposal-throw-expressions": false
184},
185"customPresets": [],
186"customPlugins": []
187}
188},
189"css": {
190"enable": true
191}
192},
193"coffeescript": {
194"header": false,
195"bare": false,
196"sourceMap": false
197},
198"command": {
199"command": "",
200"rootDir": ""
201},
202"concat-js": {
203"sourceMap": false,
204"rootDir": ""
205},
206"copy": {
207"sourceMap": false
208},
209"dart-sass": {
210"indentType": "space",
211"allowWildcardImports": false,
212"indentWidth": 2,
213"linefeed": "lf",
214"removeCharset": false,
215"sourceMap": false
216},
217"haml": {
218"doubleQuoteAttributes": true
219},
220"jpg": {
221"quality": 90
222},
223"less": {
224"javascriptEnabled": false,
225"strictImports": false,
226"insecure": false,
227"math": "always",
228"strictUnits": false,
229"dumpLineNumbers": false,
230"sourceMap": false
231},
232"markdown": {
233"githubFlavored": true,
234"wrapWithHtml": false
235},
236"minify-css": {
237"sourceMap": false
238},
239"minify-html": {
240"caseSensitive": false,
241"collapseBooleanAttributes": true,
242"collapseInlineTagWhitespace": false,
243"collapseWhitespace": true,
244"conservativeCollapse": false,
245"decodeEntities": false,
246"html5": true,
247"includeAutoGeneratedTags": true,
248"keepClosingSlash": false,
249"minifyCSS": true,
250"minifyJS": true,
251"preserveLineBreaks": false,
252"preventAttributesEscaping": false,
253"processConditionalComments": false,
254"removeAttributeQuotes": false,
255"removeComments": true,
256"removeEmptyAttributes": false,
257"removeEmptyElement": false,
258"removeOptionalTags": false,
259"removeRedundantAttributes": false,
260"removeScriptTypeAttributes": false,
261"removeStyleLinkTypeAttributes": false,
262"removeTagWhitespace": false,
263"sortAttributes": false,
264"sortClassName": false,
265"useShortDoctype": true
266},
267"minify-js": {
268"parse": {
269"bare_returns": false
270},
271"compress": {
272"arrows": true,
273"arguments": false,
274"booleans": true,
275"booleans_as_integers": false,
276"collapse_vars": true,
277"comparisons": true,
278"computed_props": true,
279"conditionals": true,
280"dead_code": true,
281"directives": true,
282"drop_console": false,
283"drop_debugger": true,
284"evaluate": true,
285"expression": false,
286"global_defs": [],
287"hoist_funs": false,
288"hoist_props": true,
289"hoist_vars": false,
290"if_return": true,
291"inline": 3,
292"join_vars": true,
293"keep_fargs": true,
294"keep_infinity": false,
295"loops": true,
296"negate_iife": true,
297"properties": true,
298"pure_funcs": [],
299"pure_getters": false,
300"reduce_funcs": true,
301"reduce_vars": true,
302"sequences": true,
303"side_effects": true,
304"switches": true,
305"top_retain": [],
306"typeofs": true,
307"unsafe": false,
308"unsafe_arrows": false,
309"unsafe_comps": false,
310"unsafe_Function": false,
311"unsafe_math": false,
312"unsafe_proto": false,
313"unsafe_regexp": false,
314"unsafe_undefined": false,
315"unused": true
316},
317"mangle": {
318"eval": false,
319"reserved": []
320},
321"output": {
322"ascii_only": false,
323"braces": false,
324"comments": "none",
325"inline_script": true,
326"keep_numbers": false,
327"keep_quoted_props": false,
328"preamble": null,
329"quote_keys": false,
330"quote_style": 0,
331"semicolons": true,
332"shebang": true,
333"webkit": false,
334"wrap_iife": false,
335"wrap_func_args": true
336},
337"sourceMap": false,
338"toplevel": false,
339"ie8": false,
340"keep_classnames": false,
341"keep_fnames": false,
342"safari10": false
343},
344"node-sass": {
345"indentType": "space",
346"allowWildcardImports": false,
347"indentWidth": 2,
348"linefeed": "lf",
349"outputStyle": "expanded",
350"precision": 10,
351"sourceMap": false,
352"removeCharset": false,
353"sourceComments": false
354},
355"png": {
356"quality": 90
357},
358"postcss-import": {
359"ignoreKeywords": [],
360"sourceMap": false
361},
362"postcss-preset-env": {
363"stage": 2,
364"browsers": [
365"last 2 versions"
366],
367"sourceMap": false
368},
369"pug": {
370"pretty": true
371},
372"slim": {
373"indent": "space",
374"indentSize": 2,
375"pretty": true
376},
377"stylus": {
378"useNib": true,
379"sourceMap": false,
380"linenos": false
381},
382"svg": {
383"cleanupAttrs": true,
384"removeDoctype": true,
385"removeXMLProcInst": true,
386"removeComments": true,
387"removeMetadata": true,
388"removeTitle": true,
389"removeDesc": true,
390"removeUselessDefs": true,
391"removeEditorsNSData": true,
392"removeEmptyAttrs": true,
393"removeHiddenElems": true,
394"removeEmptyText": true,
395"removeEmptyContainers": true,
396"removeViewBox": false,
397"cleanupEnableBackground": true,
398"convertStyleToAttrs": true,
399"convertColors": true,
400"convertPathData": true,
401"convertTransform": true,
402"removeUnknownsAndDefaults": true,
403"removeNonInheritableGroupAttrs": true,
404"removeUselessStrokeAndFill": true,
405"removeUnusedNS": true,
406"cleanupIDs": true,
407"cleanupNumericValues": true,
408"moveElemsAttrsToGroup": true,
409"moveGroupAttrsToElems": true,
410"collapseGroups": true,
411"removeRasterImages": false,
412"mergePaths": true,
413"convertShapeToPath": true,
414"sortAttrs": true,
415"removeDimensions": true
416},
417"tailwindcss": {
418"rootDir": "",
419"content": [
420"**/*.html",
421"**/*.htm",
422"**/*.php",
423"**/*.js",
424"!wp-admin",
425"!wp-includes",
426"!node_modules",
427"!Prepros Export"
428]
429},
430"turf": {
431"rootDir": ""
432}
433},
434"fileTypes": {
435"sass": {
436"extensions": [
437".scss",
438".sass"
439],
440"autoCompile": true,
441"sourceMap": false,
442"tasks": [
443{
444"task": "dart-sass",
445"enable": true
446},
447{
448"task": "autoprefixer",
449"enable": true
450},
451{
452"task": "minify-css",
453"enable": false
454}
455],
456"output": {
457"extension": ".css",
458"type": "REPLACE_SEGMENTS",
459"segments": [
460{
461"segment": "scss",
462"replaceWith": "css"
463},
464{
465"segment": "sass",
466"replaceWith": "css"
467}
468]
469}
470},
471"less": {
472"extensions": [
473".less"
474],
475"autoCompile": true,
476"sourceMap": false,
477"tasks": [
478{
479"task": "less",
480"enable": true
481},
482{
483"task": "autoprefixer",
484"enable": true
485},
486{
487"task": "minify-css",
488"enable": false
489}
490],
491"output": {
492"extension": ".css",
493"type": "REPLACE_SEGMENTS",
494"segments": [
495{
496"segment": "less",
497"replaceWith": "css"
498}
499]
500}
501},
502"pug": {
503"extensions": [
504".pug",
505".jade"
506],
507"autoCompile": true,
508"tasks": [
509{
510"task": "pug",
511"enable": true
512},
513{
514"task": "minify-html",
515"enable": false
516}
517],
518"output": {
519"extension": ".html",
520"type": "REPLACE_SEGMENTS",
521"segments": [
522{
523"segment": "pug",
524"replaceWith": "html"
525}
526]
527}
528},
529"css": {
530"extensions": [
531".css"
532],
533"autoCompile": false,
534"sourceMap": false,
535"tasks": [
536{
537"task": "copy",
538"enable": true
539},
540{
541"task": "tailwindcss",
542"enable": false
543},
544{
545"task": "postcss-import",
546"enable": false
547},
548{
549"task": "postcss-preset-env",
550"enable": false
551},
552{
553"task": "autoprefixer",
554"enable": true
555},
556{
557"task": "minify-css",
558"enable": true
559}
560],
561"output": {
562"extension": ".css",
563"type": "SOURCE_RELATIVE",
564"relativePath": "",
565"suffix": "-dist",
566"alwaysSuffix": false
567}
568},
569"javascript": {
570"extensions": [
571".js",
572".jsx"
573],
574"autoCompile": false,
575"sourceMap": false,
576"tasks": [
577{
578"task": "copy",
579"enable": true
580},
581{
582"task": "concat-js",
583"enable": false
584},
585{
586"task": "babel",
587"enable": false
588},
589{
590"task": "bundle-js",
591"enable": false
592},
593{
594"task": "minify-js",
595"enable": true
596}
597],
598"output": {
599"extension": ".js",
600"type": "SOURCE_RELATIVE",
601"relativePath": "",
602"suffix": "-dist",
603"alwaysSuffix": false
604}
605},
606"stylus": {
607"extensions": [
608".styl"
609],
610"autoCompile": true,
611"sourceMap": false,
612"tasks": [
613{
614"task": "stylus",
615"enable": true
616},
617{
618"task": "autoprefixer",
619"enable": true
620},
621{
622"task": "minify-css",
623"enable": false
624}
625],
626"output": {
627"extension": ".css",
628"type": "REPLACE_SEGMENTS",
629"segments": [
630{
631"segment": "stylus",
632"replaceWith": "css"
633},
634{
635"segment": "styl",
636"replaceWith": "css"
637}
638]
639}
640},
641"markdown": {
642"extensions": [
643".md",
644".markdown",
645".mkd"
646],
647"autoCompile": false,
648"tasks": [
649{
650"task": "markdown",
651"enable": true
652},
653{
654"task": "minify-html",
655"enable": false
656}
657],
658"output": {
659"extension": ".html",
660"type": "REPLACE_SEGMENTS",
661"segments": [
662{
663"segment": "markdown",
664"replaceWith": "html"
665}
666]
667}
668},
669"haml": {
670"extensions": [
671".haml"
672],
673"autoCompile": true,
674"tasks": [
675{
676"task": "haml",
677"enable": true
678},
679{
680"task": "minify-html",
681"enable": false
682}
683],
684"output": {
685"extension": ".html",
686"type": "REPLACE_SEGMENTS",
687"segments": [
688{
689"segment": "haml",
690"replaceWith": "html"
691}
692]
693}
694},
695"slim": {
696"extensions": [
697".slim"
698],
699"autoCompile": true,
700"tasks": [
701{
702"task": "slim",
703"enable": true
704},
705{
706"task": "minify-html",
707"enable": false
708}
709],
710"output": {
711"extension": ".html",
712"type": "REPLACE_SEGMENTS",
713"segments": [
714{
715"segment": "slim",
716"replaceWith": "html"
717}
718]
719}
720},
721"coffeescript": {
722"extensions": [
723".coffee"
724],
725"autoCompile": true,
726"sourceMap": false,
727"tasks": [
728{
729"task": "coffeescript",
730"enable": true
731},
732{
733"task": "babel",
734"enable": false
735},
736{
737"task": "bundle-js",
738"enable": false
739},
740{
741"task": "minify-js",
742"enable": false
743}
744],
745"output": {
746"extension": ".js",
747"type": "REPLACE_SEGMENTS",
748"segments": [
749{
750"segment": "coffee-script",
751"replaceWith": "js"
752},
753{
754"segment": "coffeescript",
755"replaceWith": "js"
756},
757{
758"segment": "coffee",
759"replaceWith": "js"
760}
761]
762}
763},
764"turf": {
765"extensions": [
766".turf",
767".kit"
768],
769"autoCompile": true,
770"tasks": [
771{
772"task": "turf",
773"enable": true
774},
775{
776"task": "minify-html",
777"enable": false
778}
779],
780"output": {
781"extension": ".html",
782"type": "REPLACE_SEGMENTS",
783"segments": [
784{
785"segment": "turf",
786"replaceWith": "html"
787}
788]
789}
790},
791"typescript": {
792"extensions": [
793".ts",
794".tsx"
795],
796"autoCompile": true,
797"sourceMap": false,
798"tasks": [
799{
800"task": "copy",
801"enable": true
802},
803{
804"task": "babel",
805"enable": true
806},
807{
808"task": "bundle-js",
809"enable": false
810},
811{
812"task": "minify-js",
813"enable": false
814}
815],
816"output": {
817"extension": ".js",
818"type": "REPLACE_SEGMENTS",
819"segments": [
820{
821"segment": "typescript",
822"replaceWith": "js"
823},
824{
825"segment": "ts",
826"replaceWith": "js"
827}
828]
829}
830},
831"jpg": {
832"extensions": [
833".jpg",
834".jpeg"
835],
836"tasks": [
837{
838"task": "jpg",
839"enable": true
840}
841],
842"output": {
843"extension": ".jpg",
844"type": "SOURCE_RELATIVE",
845"relativePath": ""
846}
847},
848"png": {
849"extensions": [
850".png"
851],
852"tasks": [
853{
854"task": "png",
855"enable": true
856}
857],
858"output": {
859"extension": ".png",
860"type": "SOURCE_RELATIVE",
861"relativePath": ""
862}
863},
864"svg": {
865"extensions": [
866".svg"
867],
868"tasks": [
869{
870"task": "svg",
871"enable": true
872}
873],
874"output": {
875"extension": ".svg",
876"type": "SOURCE_RELATIVE",
877"relativePath": ""
878}
879}
880},
881"files": []
882}
883}
884