npm.io
1.3.2 • Published 5 years ago

yyl-server-webpack-plugin

Licence
MIT
Version
1.3.2
Deps
8
Size
25 kB
Vulns
4
Weekly
0

yyl-server-webpack-plugin

安装

yarn add yyl-server-webpack-plugin

使用

// webpack.config.js
import YylServerWebpackPlugin from 'yyl-server-webpack-plugin'

module.exports = {
  plugins: [
    new YylServerWebpackPlugin({
      context: __dirname,
      static: './dist',
      port: 5000,
      enable: true,
      homePage: 'http://127.0.0.1:5000/html/index.html',
      proxy: {
        enable: true,
        hosts: ['//www.testhost.com']
      }
    })
  ]
}

types

这里