简体   繁体   中英

Aurelia to run https on dev environment

Currently I am working on an Aurelia app that is fully developed. In the dev environment, it is only serving http requests. Anyone could help me with adding https so can I can access the app through https?

Thank you

Angelo

In the webpack.config.js file, add the https property:

devServer: {
    ... some other values...
    https: true
    ... some other values...
  },

With that, you should run

npm start

And you'll get your app running on https://localhost:8080

Regards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM