代码拉取完成,页面将自动刷新
const webpack = require('webpack');
module.exports = {
devServer: {
proxy: {
// '/socket.io': {
// target: 'http://127.0.0.1:16062',
// ws: true,
// changeOrigin: false
// }
}
},
configureWebpack: {
resolve: {
fallback: {path: require.resolve("path-browserify")},
fallback: {zlib: require.resolve("browserify-zlib")},
fallback: {stream: require.resolve("stream-browserify")},
fallback: {buffer: require.resolve("buffer")},
fallback: {os: require.resolve("os-browserify/browser")},
},
alias: {
crypto: false,
stream: false,
assert: false,
http: false,
https: false,
zlib: false,
os: false
},
plugins: [
new webpack.ProvidePlugin({
Buffer: ['buffer', 'Buffer'],
}),
new webpack.ProvidePlugin({
process: 'process/browser',
}),
]
},
configureWebpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
// Include here the "empty" modules
url: false,
util: false,
querystring: false,
https: false,
crypto: false,
stream: false,
assert: false,
http: false,
https: false,
zlib: false,
os: false
};
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。