sale-client 3.5.173 → 3.5.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,67 +1,67 @@
1
- const express = require('express')
2
- const webpack = require('webpack')
3
- const config = require('./webpack.dev.conf')
4
- const proxyMiddleware = require('http-proxy-middleware')
5
- const app = express()
6
- const compiler = webpack(config)
7
-
8
- // 自己改了这里不要提交 来回覆盖挺麻烦的
9
- const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
10
- const port = 8089
11
-
12
- const proxyTable = {
13
- '/text': {
14
- target: local
15
- },
16
- '/files': {
17
- target: server
18
- },
19
- '/excel': {
20
- target: server
21
- },
22
- '/webmeter': {
23
- target: server
24
- },
25
- '/rs/logic': {
26
- target: server
27
- },
28
- '/rs': {
29
- target: server
30
- }
31
- }
32
-
33
- const devMiddleware = require('webpack-dev-middleware')(compiler, {
34
- publicPath: config.output.publicPath,
35
- stats: {
36
- colors: true,
37
- chunks: false
38
- }
39
- })
40
-
41
- const hotMiddleware = require('webpack-hot-middleware')(compiler)
42
- compiler.plugin('compilation', function (compilation) {
43
- compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
44
- hotMiddleware.publish({action: 'reload'})
45
- cb()
46
- })
47
- })
48
-
49
- Object.keys(proxyTable).forEach(function (context) {
50
- let options = proxyTable[context]
51
- if (typeof options === 'string') {
52
- options = {target: options}
53
- }
54
- app.use(proxyMiddleware(context, options))
55
- })
56
- app.use(require('connect-history-api-fallback')())
57
- app.use(devMiddleware)
58
- app.use(hotMiddleware)
59
- app.use('/static', express.static('./static'))
60
-
61
- module.exports = app.listen(port, function (err) {
62
- if (err) {
63
- console.log(err)
64
- return
65
- }
66
- console.log('Listening at http://localhost:' + port)
67
- })
1
+ const express = require('express')
2
+ const webpack = require('webpack')
3
+ const config = require('./webpack.dev.conf')
4
+ const proxyMiddleware = require('http-proxy-middleware')
5
+ const app = express()
6
+ const compiler = webpack(config)
7
+
8
+ // 自己改了这里不要提交 来回覆盖挺麻烦的
9
+ const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
10
+ const port = 8089
11
+
12
+ const proxyTable = {
13
+ '/text': {
14
+ target: local
15
+ },
16
+ '/files': {
17
+ target: server
18
+ },
19
+ '/excel': {
20
+ target: server
21
+ },
22
+ '/webmeter': {
23
+ target: server
24
+ },
25
+ '/rs/logic': {
26
+ target: server
27
+ },
28
+ '/rs': {
29
+ target: server
30
+ }
31
+ }
32
+
33
+ const devMiddleware = require('webpack-dev-middleware')(compiler, {
34
+ publicPath: config.output.publicPath,
35
+ stats: {
36
+ colors: true,
37
+ chunks: false
38
+ }
39
+ })
40
+
41
+ const hotMiddleware = require('webpack-hot-middleware')(compiler)
42
+ compiler.plugin('compilation', function (compilation) {
43
+ compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
44
+ hotMiddleware.publish({action: 'reload'})
45
+ cb()
46
+ })
47
+ })
48
+
49
+ Object.keys(proxyTable).forEach(function (context) {
50
+ let options = proxyTable[context]
51
+ if (typeof options === 'string') {
52
+ options = {target: options}
53
+ }
54
+ app.use(proxyMiddleware(context, options))
55
+ })
56
+ app.use(require('connect-history-api-fallback')())
57
+ app.use(devMiddleware)
58
+ app.use(hotMiddleware)
59
+ app.use('/static', express.static('./static'))
60
+
61
+ module.exports = app.listen(port, function (err) {
62
+ if (err) {
63
+ console.log(err)
64
+ return
65
+ }
66
+ console.log('Listening at http://localhost:' + port)
67
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.173",
3
+ "version": "3.5.174",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {