You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
654 B
24 lines
654 B
var merge = require("webpack-merge");
|
|
var path = require("path");
|
|
var webpack = require("webpack");
|
|
var common = require("./webpack.common.js");
|
|
var OpenBrowserPlugin = require("open-browser-webpack-plugin");
|
|
module.exports = merge(common, {
|
|
plugins:[new OpenBrowserPlugin({ url: 'http://0.0.0.0:8080/test/demo1/' })],
|
|
devServer: {
|
|
disableHostCheck: true,
|
|
progress: true,
|
|
proxy: {
|
|
"/api/*": {
|
|
target: "http://0.0.0.0:9000",
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
},
|
|
host: "0.0.0.0",
|
|
contentBase: path.join(__dirname, "./"),
|
|
publicPath: "/dist/",
|
|
hot: false,
|
|
inline: false
|
|
}
|
|
});
|
|
|