webpack.config.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566
  1. const webpack = require('webpack');
  2. const path = require('path');
  3. const ExtractTextPlugin = require("extract-text-webpack-plugin");
  4. const HtmlWebpackPlugin = require('html-webpack-plugin');
  5. const WebpackDevServer = require('webpack-dev-server');
  6. const entries = require('./webpack/entry.config.js');
  7. const version = require('./package.json').version;
  8. const argv = require('yargs').argv;
  9. const ImageminPlugin = require('imagemin-webpack-plugin').default;
  10. const CopyWebpackPlugin = require('copy-webpack-plugin');
  11. const dirVars = require('./webpack/dir.config.js');
  12. const HtmlWebpackIncludeAssetsPlugin = require('html-webpack-include-assets-plugin');
  13. let theme = {
  14. '@primary-color': '#f68704',
  15. '@link-color': '#f68704'
  16. };
  17. let isWatch = argv.env.watch == 'watch';
  18. let isDev = isWatch || argv.env.deploy == 'dev';
  19. module.exports = (function () {
  20. let plugins = [
  21. new webpack.optimize.CommonsChunkPlugin({
  22. name: 'vendors',
  23. minChunks: 20
  24. }),
  25. // new webpack.optimize.CommonsChunkPlugin({
  26. // name: 'vendor',
  27. // minChunks: function (module) {
  28. // return (
  29. // module.resource &&
  30. // /\.js$/.test(module.resource) &&
  31. // module.resource.indexOf(
  32. // path.join(__dirname, '../node_modules')
  33. // ) === 0
  34. // )
  35. // }
  36. // }),
  37. // new webpack.optimize.CommonsChunkPlugin({
  38. // name: 'vendors',
  39. // chunks: ['vendor']
  40. // }),
  41. /* 配置好Dll */
  42. new webpack.DllReferencePlugin({
  43. context: dirVars.staticRootDir, // 指定一个路径作为上下文环境,需要与DllPlugin的context参数保持一致,建议统一设置为项目根目录
  44. manifest: require('./dll/'+argv.env.deploy+'/manifest.json') // 指定manifest.json
  45. }),
  46. // 把dll文件复制到打包后的文件中
  47. new CopyWebpackPlugin([
  48. {
  49. from: path.resolve('./dll/'+argv.env.deploy),
  50. to: (__dirname, './dll/'),
  51. ignore: ['.*']
  52. }
  53. ]),
  54. // 将 dll.js 插入HTML里
  55. new HtmlWebpackIncludeAssetsPlugin({
  56. assets: [(__dirname, 'dll/dll.js'),(__dirname, 'dll/dll.css')],
  57. append: false
  58. }),
  59. new ExtractTextPlugin({
  60. filename: "[name].css",
  61. disable: false,
  62. allChunks: true
  63. }),
  64. new webpack.ProvidePlugin({
  65. $: "jquery",
  66. jQuery: "jquery"
  67. }),
  68. //用于增加图片
  69. new HtmlWebpackPlugin({
  70. title: '图片',
  71. filename: 'html/img.html',
  72. template: './template/img.html',
  73. chunks: ['aboutUs', 'vendors']
  74. }),
  75. new HtmlWebpackPlugin({
  76. title: '首页',
  77. filename: 'html/index.html',
  78. template: './template/index.html',
  79. chunks: ['vendors','index' ],
  80. chunksSortMode:"dependency"
  81. }),
  82. new HtmlWebpackPlugin({
  83. title: '搜索页',
  84. filename: 'html/search.html',
  85. template: './template/search.html',
  86. chunks: ['vendors','search'],
  87. }),
  88. new HtmlWebpackPlugin({
  89. title: '服务商主页',
  90. filename: 'html/facilitator.html',
  91. template: './template/newMenu/facilitator/facilitator.html',
  92. chunks: ['vendors','facilitator'],
  93. }),
  94. // new HtmlWebpackPlugin({
  95. // title: '支付跳转页面',
  96. // filename: 'html/toPayment.html',
  97. // template: './template/toPayment.html',
  98. // chunks: ['toPayment', 'vendors']
  99. // }),
  100. new HtmlWebpackPlugin({
  101. title: '关于公司',
  102. filename: 'html/aboutUs.html',
  103. template: './template/aboutUs.html',
  104. chunks: ['aboutUs', 'vendors']
  105. }),
  106. // new HtmlWebpackPlugin({
  107. // title: '关于公司APP',
  108. // filename: 'html/APPaboutUs.html',
  109. // template: './template/APPaboutUs.html',
  110. // chunks: ['APPaboutUs', 'vendors']
  111. // }),
  112. new HtmlWebpackPlugin({
  113. title: '联系我们',
  114. filename: 'html/contactUs.html',
  115. template: './template/contactUs.html',
  116. chunks: ['contactUs', 'vendors']
  117. }),
  118. // new HtmlWebpackPlugin({
  119. // title: '科技服务',
  120. // filename: 'html/service.html',
  121. // template: './template/service.html',
  122. // chunks: ['service', 'vendors']
  123. // }),
  124. new HtmlWebpackPlugin({
  125. title: '注册',
  126. filename: 'html/register.html',
  127. template: './template/register.html',
  128. chunks: ['register', 'vendors']
  129. }),
  130. // new HtmlWebpackPlugin({
  131. // title: '会员',
  132. // filename: 'html/member.html',
  133. // template: './template/member.html',
  134. // chunks: ['member', 'vendors']
  135. // }),
  136. // new HtmlWebpackPlugin({
  137. // title: '科技交易',
  138. // filename: 'html/technologyTrading.html',
  139. // template: './template/technologyTrading.html',
  140. // chunks: ['technologyTrading', 'vendors']
  141. // }),
  142. new HtmlWebpackPlugin({
  143. title: '科技智库',
  144. filename: 'html/thinkTank.html',
  145. template: './template/thinkTank.html',
  146. chunks: ['thinkTank', 'vendors']
  147. }),
  148. // new HtmlWebpackPlugin({
  149. // title: '科技金融',
  150. // filename: 'html/financialIndex.html',
  151. // template: './template/financialIndex.html',
  152. // chunks: ['financialIndex', 'vendors']
  153. // }),
  154. // new HtmlWebpackPlugin({
  155. // title: '科技交易-技术专利',
  156. // filename: 'html/technologyTrading/achievement.html',
  157. // template: './template/technologyTrading/achievement.html',
  158. // chunks: ['technologyTrading/achievement', 'vendors']
  159. // }),
  160. // new HtmlWebpackPlugin({
  161. // title: '科技交易-技术需求',
  162. // filename: 'html/technologyTrading/demand.html',
  163. // template: './template/technologyTrading/demand.html',
  164. // chunks: ['technologyTrading/demand', 'vendors']
  165. // }),
  166. new HtmlWebpackPlugin({
  167. title: '科技交易-技术专利详情',
  168. filename: 'html/technologyTrading/achievementDetail.html',
  169. template: './template/technologyTrading/achievementDetail.html',
  170. chunks: ['technologyTrading/achievementDetail', 'vendors']
  171. }),
  172. new HtmlWebpackPlugin({
  173. title: '科技交易-技术需求详情',
  174. filename: 'html/technologyTrading/demandDetail.html',
  175. template: './template/technologyTrading/demandDetail.html',
  176. chunks: ['technologyTrading/demandDetail', 'vendors']
  177. }),
  178. // new HtmlWebpackPlugin({
  179. // title: '在线评估',
  180. // filename: 'html/technologyTrading/assessMent.html',
  181. // template: './template/technologyTrading/assessMent.html',
  182. // chunks: ['technologyTrading/assessMent', 'vendors']
  183. // }),
  184. // new HtmlWebpackPlugin({
  185. // title: '科技交易-技术成果下单页面',
  186. // filename: 'html/technologyTrading/achievementOrder.html',
  187. // template: './template/technologyTrading/achievementOrder.html',
  188. // chunks: ['technologyTrading/achievementOrder', 'vendors']
  189. // }),
  190. // new HtmlWebpackPlugin({
  191. // title: '科技交易-技术需求下单页面',
  192. // filename: 'html/technologyTrading/demandOrder.html',
  193. // template: './template/technologyTrading/demandOrder.html',
  194. // chunks: ['technologyTrading/demandOrder', 'vendors']
  195. // }),
  196. new HtmlWebpackPlugin({
  197. title: '智库咨询-智政详情',
  198. filename: 'html/thinkTank/policyDetail.html',
  199. template: './template/thinkTank/policyDetail.html',
  200. chunks: ['thinkTank/policyDetail', 'vendors']
  201. }),
  202. new HtmlWebpackPlugin({
  203. title: '智库咨询-智政列表',
  204. filename: 'html/thinkTank/policyList.html',
  205. template: './template/thinkTank/policyList.html',
  206. chunks: ['thinkTank/policyList', 'vendors']
  207. }),
  208. new HtmlWebpackPlugin({
  209. title: '智库咨询-智者详情',
  210. filename: 'html/thinkTank/thinkerDetail.html',
  211. template: './template/thinkTank/thinkerDetail.html',
  212. chunks: ['thinkTank/thinkerDetail', 'vendors']
  213. }),
  214. // new HtmlWebpackPlugin({
  215. // title: '科技金融-投资机构',
  216. // filename: 'html/financial/investmentInstitution.html',
  217. // template: './template/financial/investmentInstitution.html',
  218. // chunks: ['financial/investmentInstitution', 'vendors']
  219. // }),
  220. // new HtmlWebpackPlugin({
  221. // title: '科技金融-投资机构',
  222. // filename: 'html/financial/investmentDetail.html',
  223. // template: './template/financial/investmentDetail.html',
  224. // chunks: ['financial/investmentDetail', 'vendors']
  225. // }),
  226. // new HtmlWebpackPlugin({
  227. // title: '科技服务-高新认定',
  228. // filename: 'html/service/highTechCognizance.html',
  229. // template: './template/service/highTechCognizance.html',
  230. // chunks: ['service/highTechCognizance', 'vendors']
  231. // }),
  232. // new HtmlWebpackPlugin({
  233. // title: '科技服务-知识产权',
  234. // filename: 'html/service/propertyRight.html',
  235. // template: './template/service/propertyRight.html',
  236. // chunks: ['service/propertyRight', 'vendors']
  237. // }),
  238. // new HtmlWebpackPlugin({
  239. // title: '科技服务-高新认定',
  240. // filename: 'html/service/projectDetails.html',
  241. // template: './template/service/projectDetails.html',
  242. // chunks: ['service/projectDetails', 'vendors']
  243. // }),
  244. // new HtmlWebpackPlugin({
  245. // title: '科技服务-服务意向',
  246. // filename: 'html/service/purpose.html',
  247. // template: './template/service/purpose.html',
  248. // chunks: ['service/purpose', 'vendors']
  249. // }),
  250. //newsApp
  251. new HtmlWebpackPlugin({
  252. title: '新闻详情',
  253. filename: 'html/news/newsDetailApp.html',
  254. template: './template/news/newsDetailApp.html',
  255. chunks: ['news/newsDetailApp', 'vendors']
  256. }),
  257. // new HtmlWebpackPlugin({
  258. // title: '高企认定',
  259. // filename: 'html/news/appCognizance.html',
  260. // template: './template/news/appCognizance.html',
  261. // chunks: ['news/appCognizance', 'vendors']
  262. // }),
  263. new HtmlWebpackPlugin({
  264. title: '注册协议',
  265. filename: 'html/news/agreement.html',
  266. template: './template/news/agreement.html',
  267. chunks: ['news/agreement', 'vendors']
  268. }),
  269. /* 2018-6 改版后科技需求 */
  270. new HtmlWebpackPlugin({
  271. title: '科技需求',
  272. filename: 'html/newMenu/demand.html',
  273. template: './template/newMenu/demand.html',
  274. chunks: ['newMenu/demand', 'vendors']
  275. }),
  276. new HtmlWebpackPlugin({
  277. title: '科技成果',
  278. filename: 'html/newMenu/achievement.html',
  279. template: './template/newMenu/achievement.html',
  280. chunks: ['newMenu/achievement', 'vendors']
  281. }),
  282. new HtmlWebpackPlugin({
  283. title: '科技成果列表',
  284. filename: 'html/newMenu/achievementList.html',
  285. template: './template/newMenu/achievementList.html',
  286. chunks: ['newMenu/achievementList', 'vendors']
  287. }),
  288. new HtmlWebpackPlugin({
  289. title: '科技需求列表',
  290. filename: 'html/newMenu/demandList.html',
  291. template: './template/newMenu/demandList.html',
  292. chunks: ['newMenu/demandList', 'vendors']
  293. }),
  294. new HtmlWebpackPlugin({
  295. title: '科技服务',
  296. filename: 'html/newMenu/services.html',
  297. template: './template/newMenu/services.html',
  298. chunks: ['newMenu/services', 'vendors']
  299. }),
  300. new HtmlWebpackPlugin({
  301. title: '科技服务列表',
  302. filename: 'html/newMenu/serviceList.html',
  303. template: './template/newMenu/serviceList.html',
  304. chunks: ['newMenu/serviceList', 'vendors']
  305. }),
  306. new HtmlWebpackPlugin({
  307. title: '科技服务详情',
  308. filename: 'html/newMenu/serviceDetails.html',
  309. template: './template/newMenu/serviceDetails.html',
  310. chunks: ['newMenu/serviceDetails', 'vendors']
  311. }),
  312. new HtmlWebpackPlugin({
  313. title: '购物车',
  314. filename: 'html/newMenu/shopList.html',
  315. template: './template/newMenu/shopList.html',
  316. chunks: ['newMenu/shopList', 'vendors']
  317. }),
  318. new HtmlWebpackPlugin({
  319. title: '专利列表',
  320. filename: 'html/newMenu/patentList.html',
  321. template: './template/newMenu/patentList.html',
  322. chunks: ['newMenu/patentList', 'vendors']
  323. }),
  324. new HtmlWebpackPlugin({
  325. title: '知识产权交易首页',
  326. filename: 'html/newMenu/tradingIndex.html',
  327. template: './template/newMenu/tradingIndex.html',
  328. chunks: ['newMenu/tradingIndex', 'vendors']
  329. }),
  330. new HtmlWebpackPlugin({
  331. title: '知识产权申请首页',
  332. filename: 'html/newMenu/patent.html',
  333. template: './template/newMenu/patent.html',
  334. chunks: ['newMenu/patent', 'vendors']
  335. }),
  336. new HtmlWebpackPlugin({
  337. title: '公司简介',
  338. filename: 'html/newMenu/companyProfile.html',
  339. template: './template/newMenu/companyProfile.html',
  340. chunks: ['newMenu/companyProfile', 'vendors']
  341. }),
  342. new HtmlWebpackPlugin({
  343. title: '高企认定',
  344. filename: 'html/newMenu/continueHigh.html',
  345. template: './template/newMenu/loading/continueHigh.html',
  346. chunks: ['newMenu/continueHigh', 'vendors']
  347. }),
  348. new HtmlWebpackPlugin({
  349. title: '实用新型专利',
  350. filename: 'html/newMenu/practicalPatent.html',
  351. template: './template/newMenu/loading/practicalPatent.html',
  352. chunks: ['newMenu/practicalPatent', 'vendors']
  353. }),
  354. new HtmlWebpackPlugin({
  355. title: '军工认证',
  356. filename: 'html/newMenu/militaryProject.html',
  357. template: './template/newMenu/loading/militaryProject.html',
  358. chunks: ['newMenu/militaryProject', 'vendors']
  359. }),
  360. // new HtmlWebpackPlugin({
  361. // title: '高企认定App',
  362. // filename: 'html/newMenu/continueHighApp.html',
  363. // template: './template/newMenu/landingPage/continueHighApp.html',
  364. // chunks: ['newMenu/continueHighApp', 'vendors']
  365. // }),
  366. // new HtmlWebpackPlugin({
  367. // title: '实用新型专利App',
  368. // filename: 'html/newMenu/practicalPatentApp.html',
  369. // template: './template/newMenu/landingPage/practicalPatentApp.html',
  370. // chunks: ['newMenu/practicalPatentApp', 'vendors']
  371. // }),
  372. // new HtmlWebpackPlugin({
  373. // title: '军工认证App',
  374. // filename: 'html/newMenu/militaryProjectApp.html',
  375. // template: './template/newMenu/landingPage/militaryProjectApp.html',
  376. // chunks: ['newMenu/militaryProjectApp', 'vendors']
  377. // }),
  378. new HtmlWebpackPlugin({
  379. title: '知识产权维权',
  380. filename: 'html/newMenu/safeguarding.html',
  381. template: './template/newMenu/safeguarding.html',
  382. chunks: ['newMenu/safeguarding', 'vendors']
  383. }),
  384. new HtmlWebpackPlugin({
  385. title: '知识产权维权列表',
  386. filename: 'html/newMenu/safeguardingList.html',
  387. template: './template/newMenu/safeguardingList.html',
  388. chunks: ['newMenu/safeguardingList', 'vendors']
  389. }),
  390. new HtmlWebpackPlugin({
  391. title: '知识产权维权详情',
  392. filename: 'html/newMenu/safeguardingDetail.html',
  393. template: './template/newMenu/safeguardingDetail.html',
  394. chunks: ['newMenu/safeguardingDetail', 'vendors']
  395. }),
  396. //app
  397. // new HtmlWebpackPlugin({
  398. // title: '评估',
  399. // filename: 'html/newMenu/app/assessment.html',
  400. // template: './template/newMenu/app/assessment.html',
  401. // chunks: ['newMenu/app/assessment', 'vendors']
  402. // }),
  403. // new HtmlWebpackPlugin({
  404. // title: '托管',
  405. // filename: 'html/newMenu/app/trusteeship.html',
  406. // template: './template/newMenu/app/trusteeship.html',
  407. // chunks: ['newMenu/app/trusteeship', 'vendors']
  408. // }),
  409. // new HtmlWebpackPlugin({
  410. // title: 'app维权',
  411. // filename: 'html/newMenu/app/safeguardApp.html',
  412. // template: './template/newMenu/app/safeguardApp.html',
  413. // chunks: ['newMenu/app/safeguardApp', 'vendors']
  414. // })
  415. new HtmlWebpackPlugin({
  416. title: '高企自评',
  417. filename: 'html/evaluation/evaluate.html',
  418. template: './template/newMenu/evaluate.html',
  419. chunks: ['evaluation/evaluate','vendors']
  420. }),
  421. new HtmlWebpackPlugin({
  422. title: '知识产权顾问首页',
  423. filename: 'html/newMenu/adviser.html',
  424. template: './template/newMenu/adviser.html',
  425. chunks: ['newMenu/adviser', 'vendors']
  426. }),
  427. new HtmlWebpackPlugin({
  428. title: '知识产权顾问列表',
  429. filename: 'html/newMenu/adviserList.html',
  430. template: './template/newMenu/adviserList.html',
  431. chunks: ['newMenu/adviserList', 'vendors']
  432. }),
  433. new HtmlWebpackPlugin({
  434. title: '知识产权顾问详情',
  435. filename: 'html/newMenu/adviserDetail.html',
  436. template: './template/newMenu/adviserDetail.html',
  437. chunks: ['newMenu/adviserDetail', 'vendors']
  438. }),
  439. new HtmlWebpackPlugin({
  440. title: '品牌建设',
  441. filename: 'html/newMenu/brandBuild.html',
  442. template: './template/newMenu/loading/brandBuild.html',
  443. chunks: ['newMenu/brandBuild', 'vendors']
  444. }),
  445. new HtmlWebpackPlugin({
  446. title: '市场开括',
  447. filename: 'html/newMenu/marketOpen.html',
  448. template: './template/newMenu/loading/marketOpen.html',
  449. chunks: ['newMenu/marketOpen', 'vendors']
  450. }),
  451. new HtmlWebpackPlugin({
  452. title: '财税金融',
  453. filename: 'html/newMenu/taxFinance.html',
  454. template: './template/newMenu/loading/taxFinance.html',
  455. chunks: ['newMenu/taxFinance', 'vendors']
  456. }),
  457. new HtmlWebpackPlugin({
  458. title: '政府扶持',
  459. filename: 'html/newMenu/governmentSupport.html',
  460. template: './template/newMenu/loading/governmentSupport.html',
  461. chunks: ['newMenu/governmentSupport', 'vendors']
  462. }),
  463. new HtmlWebpackPlugin({
  464. title: '在线评估',
  465. filename: 'html/newMenu/assessment.html',
  466. template: './template/newMenu/loading/assessment.html',
  467. chunks: ['newMenu/assessment', 'vendors']
  468. }),
  469. new HtmlWebpackPlugin({
  470. title: '邀请好友',
  471. filename: 'html/newMenu/Invitation.html',
  472. template: './template/newMenu/landingPage/Invitation.html',
  473. chunks: ['newMenu/Invitation', 'vendors']
  474. }),
  475. new HtmlWebpackPlugin({
  476. title: '优惠活动',
  477. filename: 'html/newMenu/invRegister.html',
  478. template: './template/newMenu/landingPage/InvRegister.html',
  479. chunks: ['newMenu/invRegister', 'vendors']
  480. }),
  481. new HtmlWebpackPlugin({
  482. title: '视频列表',
  483. filename: 'html/newMenu/video.html',
  484. template: './template/video.html',
  485. chunks: ['newMenu/video', 'vendors']
  486. }),
  487. new HtmlWebpackPlugin({
  488. title: '技淘视频',
  489. filename: 'html/newMenu/videoDetail.html',
  490. template: './template/videoDetail.html',
  491. chunks: ['newMenu/videoDetail', 'vendors']
  492. }),
  493. new HtmlWebpackPlugin({
  494. title: '技淘社区',
  495. filename: 'html/newMenu/special.html',
  496. template: './template/newMenu/special.html',
  497. chunks: ['newMenu/special', 'vendors']
  498. }),
  499. new HtmlWebpackPlugin({
  500. title: '技淘社区详情',
  501. filename: 'html/newMenu/specialDetail.html',
  502. template: './template/newMenu/specialDetail.html',
  503. chunks: ['newMenu/specialDetail', 'vendors']
  504. }),
  505. ];
  506. if (!isDev) {
  507. //这个使用uglifyJs压缩你的js代码
  508. plugins.unshift(new webpack.DefinePlugin({
  509. "process.env": {
  510. NODE_ENV: JSON.stringify("production")
  511. }
  512. }));
  513. plugins.unshift(new webpack.optimize.UglifyJsPlugin({
  514. minimize: true,
  515. compress: {
  516. warnings: true
  517. }
  518. }));
  519. }
  520. let staticHost = 'http://172.16.0.253:80';
  521. switch (argv.env.deploy) {
  522. case 'test':
  523. staticHost = 'http://static.afantixinxi.com';
  524. break;
  525. case 'prod':
  526. staticHost = 'http://static.afantixinxi.com';
  527. break;
  528. default:
  529. break;
  530. }
  531. staticHost = staticHost + '/portal/' + version + '/';
  532. return {
  533. entry: isWatch ? entries.watch : entries.prod,
  534. output: {
  535. path: path.resolve(__dirname, './build/' + argv.env.deploy + '/' + version),
  536. filename: '[name].js',
  537. publicPath: staticHost,
  538. chunkFilename: 'chunks/[name].[hash:8].js'
  539. },
  540. module: require('./webpack/module.config.js')(theme),
  541. resolve: {
  542. extensions: ['.js', '.jsx'],
  543. alias: {
  544. 'js': __dirname + '/src/js',
  545. 'css': __dirname + '/src/css',
  546. 'imgs': __dirname + '/img',
  547. }
  548. },
  549. plugins: plugins,
  550. devServer: {
  551. disableHostCheck: true,
  552. host: '172.16.0.253',
  553. port: 80,
  554. allowedHosts: ['192.168.0.222', '192.168.0.99', '192.168.0.20','192.168.0.17'],
  555. headers: {
  556. "Access-Control-Allow-Origin": "*"
  557. }
  558. }
  559. };
  560. })();