|  |  |  | 
|---|
|  |  |  | '^/debug': '/' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | '/static/snap': { | 
|---|
|  |  |  | target: 'http://localhost:18080', | 
|---|
|  |  |  | changeOrigin: true, | 
|---|
|  |  |  | // pathRewrite: { | 
|---|
|  |  |  | //   '^/static/snap': '/static/snap' | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // Various Dev Server settings | 
|---|
|  |  |  | host: 'localhost', // can be overwritten by process.env.HOST | 
|---|
|  |  |  | host:"127.0.0.1", | 
|---|
|  |  |  | useLocalIp: false, // can be overwritten by process.env.HOST | 
|---|
|  |  |  | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined | 
|---|
|  |  |  | autoOpenBrowser: false, | 
|---|
|  |  |  | errorOverlay: true, | 
|---|
|  |  |  | notifyOnErrors: true, | 
|---|
|  |  |  | hot: true,//自动保存 | 
|---|
|  |  |  | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // Paths | 
|---|
|  |  |  | assetsRoot: path.resolve(__dirname, '../../src/main/resources/static/'), | 
|---|
|  |  |  | assetsSubDirectory: '.', | 
|---|
|  |  |  | assetsSubDirectory: './static', | 
|---|
|  |  |  | assetsPublicPath: '/', | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|