我在Webpack中遇到以下错误:
此网址无效
https://app.testMedia.ca:8080/sockjs-node/info?t=132412126
但是这个有
https://app.testMedia.ca/sockjs-node/info?t=132412126
我该如何配置sockjs网址,以使其代替那个网址?
我当前的webpack设置:
module.exports = {
entry: {
main: './src/index.js'
}, ....
webpackdev
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = merge(common, {
devtool: 'inline-source-map',
devServer: {
host: "0.0.0.0",
historyApiFallback: true,
disableHostCheck: true,
contentBase: './dist',
https:true
},
mode: 'development'
});