1.0.2 • Published 3 years ago

modify-nginx-conf v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

modify-nginx-conf

Modify nginx server file 修改nginx配置文件,增加新路由配置

Install

npm i -D modify-nginx-conf
yarn modify-nginx-conf -D

Usage

add following code to your file.

create-react-app

const WebpackModifyNginxConfigPlugin = require('modify-nginx-conf')

new WebpackModifyNginxConfigPlugin({
  username: 'root',
  host: 'xxxxxx',
  password: 'xxxxxx',
  locationPath: `xxxxxxx`,
  nginxFilePath: '/etc/nginx/conf.d/default.conf',
  aliasFilePath: `xxxx`
})