0.1.6 ā€¢ Published 3 years ago

webpack-devtool-plugin v0.1.6

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

Help developers switch agents Online

šŸ  Homepage

Prerequisites

  • npm >=5.5.0
  • node >=9.3.0

Install

npm install webpack-devtool-plugin -D

usage

Use in webpack.config.js

const WebpackDevtoolPlugin = require('webpack-devtool-plugin');

module.exports = {
  devServer: {
    proxy: {
+      '/':WebpackDevtoolPlugin.getProxyConfig()
    }
  },
  plugins: [
+ new WebpackDevtoolPlugin({
+     proxyArr: [
+       { value: "http://a.com" },
+       { value: "http://b.com" },
+       { value: "http://c.com" },
+   ],
+ }),
  ],
}

Use in vue

// vue.config.js
 const CopyWebpackPlugin = require("webpack-devtool-plugin")

module.exports = {
    devServer:{
        proxy:{
          "/": CopyWebpackPlugin.getProxyConfig()
        }
    },
    configureWebpack:{
        plugins: [
            new CopyWebpackPlugin({
                proxyArr:[{
                    value:'http://localhost:3001'
                }]
            })
        ]},
}

DevToolsPlugin options

NameTypevalue
proxyArrArray<{value:string}>{value:'http://a.com'}

Author

šŸ‘¤ wenhaoming 435203093@qq.com

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2021 wenhaoming <435203093@qq.com>. This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator

0.1.6

3 years ago

0.1.2

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.5

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago