1。cnpm安装依赖
sudo cnpm install moment
sudo cnpm install nice-try2。在webpack.config.js中修改配置,配置成https请求
devServer: {
contentBase: path.join(__dirname, 'dist'),
publicPath: '/',
compress: true,
disableHostCheck: true,
historyApiFallback: true,
**https: true,
port: 443**
},3。在src中的config.js中设置请求的基础地址即可
版权声明:本文为ufan94原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。