vue+webpack+nodejs是前端开发吗
1个回答
2017-06-10
展开全部
前端可以用flightplan.js 部署。
var config = require("./webpack.config.js");
var webpack = require("webpack")
var webpackDevServer=require("webpack-dev-server")
config.entry.unshift("webpack-dev-server/client?localhost:8080", "webpack/hot/dev-server");
var compiler = webpack(config);
var server = new webpackDevServer(compiler, {
contentBase: "build",
hot: true,
inline: true,
historyApiFallback: true,
proxy: {
'/*': {
target: 'loaclhost:8088/',
secure: false
},
}
});
server.listen(8080);
var config = require("./webpack.config.js");
var webpack = require("webpack")
var webpackDevServer=require("webpack-dev-server")
config.entry.unshift("webpack-dev-server/client?localhost:8080", "webpack/hot/dev-server");
var compiler = webpack(config);
var server = new webpackDevServer(compiler, {
contentBase: "build",
hot: true,
inline: true,
historyApiFallback: true,
proxy: {
'/*': {
target: 'loaclhost:8088/',
secure: false
},
}
});
server.listen(8080);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询