Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

dev-serve-update-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dev-serve-update-webpack-plugin

在开发环境中,将构建生成的js文件的路径输出到指定的文件中

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

dev-serve-update-webpack-plugin

配合项目super-project-staff子产线使用的,在开发环境中,将构建打包生成的js文件的路径输出到指定的文件中

options

OptionDescTypeExample
appName子产线的应用名称,用于生成的json中作为key的取值String"Hello"
devServerPort开发端口(用于生成绝对路径)Number7766
superServeConfigPath输出的文件的路径(一般指super-project-staff的serve.dev.config.json文件路径)String(path)path.resolve(__dirname, '../super_project_staff/serve.dev.config.json')

Options example:

plugins: [
  new ServiceConfigUpdateWebpackPlugin({ 
    // 项目名
    appName: APP_NAME, 
    // 开发服务器端口号
    devServerPort: DEV_SERVER_PORT,
    // 生成的json文件路径
    output: path.resolve(__dirname, '../super_project_staff/serve.dev.config.json')
  })
]

Output json file example:

{
  "hello": {
    "src": [
      "http://localhost:7766/0.js",
      "http://localhost:7766/1.js",
      "http://localhost:7766/app.js"
    ],
    "timestamp": 1568084495943
  },
  "world": {
    "src": [
      "http://localhost:7744/0.js",
      "http://localhost:7744/1.js",
      "http://localhost:7744/app.js"
    ],
    "timestamp": 1567740866890
  }
}

FAQs

Package last updated on 10 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts