我有这个package.json脚本:
"scripts": {
"build": "nwb build-react-component",
"clean": "nwb clean-module && nwb clean-demo",
"start": "nwb serve-react-demo --host 127.0.0.1 --port 3000",
"test": "nwb test-react",
"test:coverage": "nwb test-react --coverage",
"test:watch": "nwb test-react --server"
},如果我使用npm,在http://127.0.0.1:3000上启动这个rune服务器
如何运行https?
我试过HTTPS=true npm start,但它不起作用:
请帮帮忙
发布于 2018-08-09 12:29:19
您可以在您的nwb.config.js模块…中通过devServer.https配置来完成此操作
{
devServer: {
https: true
}
}…或通过CLI:
nwb serve-react-demo --devServer.https发布于 2018-11-27 16:01:47
nwb.config.js中的配置
module.exports = {
devServer: {
host: "sso-admin-presit.hktdc.com",
port: 443,
https: true
},
}https://stackoverflow.com/questions/50545896
复制相似问题