📜  vue setup https - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:51.839000             🧑  作者: Mango

代码示例1
const fs = require('fs')

module.exports = {
    devServer: {
        https: {
          key: fs.readFileSync('./certs/example.com+5-key.pem'),
          cert: fs.readFileSync('./certs/example.com+5.pem'),
        },
        public: 'https://localhost:8080/'
    }
}