1 | "use strict";
|
2 | const path = require('path');
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | module.exports = {
|
12 | "compressThreadCrisis": 200,
|
13 |
|
14 | "configFileName": "config.json",
|
15 |
|
16 | "projectPath": "",
|
17 |
|
18 | "cssDir": "css",
|
19 | "imagesDir": "css/i",
|
20 | "jsDir": "js",
|
21 | "htmlDir": "html",
|
22 | "widgetDir": "widget",
|
23 |
|
24 | "outputDirName": "build",
|
25 | "outputCustom": "",
|
26 |
|
27 | "widgetOutputName": "widget",
|
28 | "widgetOutputMode": 1,
|
29 | "widgetWhiteList": [],
|
30 | "widgetBlackList": [],
|
31 | "widgetNesting": true,
|
32 | "widgetLabel": true,
|
33 |
|
34 | "localServerPort": 80,
|
35 |
|
36 | "cdn": "//misc.360buyimg.com",
|
37 |
|
38 | "serverDir": "misc.360buyimg.com",
|
39 | "previewServerDir": "page.jd.com",
|
40 | "widgetServerDir": "jdfwidget.jd.com",
|
41 |
|
42 | "build":{
|
43 | "jsPlace": "insertBody",
|
44 | "livereload":true,
|
45 | "sass":true,
|
46 | "less":true,
|
47 | "csslint":false
|
48 | },
|
49 | "upload": {
|
50 | "type": "http",
|
51 | "host": null,
|
52 | "user": null,
|
53 | "password": null,
|
54 | "port": null,
|
55 | "rootPrefix": "/var/www/html/"
|
56 | },
|
57 | "output":{
|
58 | "linkReplace": true,
|
59 | "cssImagesUrlReplace": true,
|
60 | "jsUrlReplace": true,
|
61 | "comboItemCount":2,
|
62 | "cssCombo": true,
|
63 | "jsCombo": true,
|
64 |
|
65 | "hasBanner": true,
|
66 | "compresshtml": false,
|
67 | "compressJs": true,
|
68 | "compressCss": true,
|
69 | "compressImage": true,
|
70 |
|
71 | "cssSprite": true,
|
72 | "cssSpriteMode": 1,
|
73 | "cssSpriteMargin": 10,
|
74 | "cssSpriteDirection": 'vertical',
|
75 | "cssAutoPrefixer": true,
|
76 | "browserslist": ['last 2 version', '> 0.2%', 'ie > 7'],
|
77 |
|
78 | "base64": true,
|
79 | "webp":false,
|
80 |
|
81 | "excludeFiles": "",
|
82 | },
|
83 |
|
84 | "babel": {
|
85 |
|
86 | "defaultPresets": [path.resolve(__dirname, "../node_modules/babel-preset-env")],
|
87 | "presets": [],
|
88 | "defaultPlugins": [],
|
89 | "plugins": []
|
90 | },
|
91 |
|
92 |
|
93 | "plugins": [],
|
94 |
|
95 |
|
96 | "components": {}
|
97 | }
|