@ -50,6 +50,7 @@ const product = {
port: flags.port || 8080,
staticDirs: [path.join(__dirname, './client')],
frontParams: {
// 以大写字母命名
API_ROOT: FS_UNIAPP_API
},
mws: [
@ -20,7 +20,7 @@ module.exports = {
})()
}),
)
const compiler = webpack(devConfig);
app.use(proxy('http://localhost:5401', {
@ -40,7 +40,7 @@ module.exports = {
return 'client/build/index.html';
}
}));
const server = express();
server.use(middleware(compiler));
//server.use(require("webpack-hot-middleware")(compiler));