1 Star 0 Fork 0

shch/yanxuan-weex-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
webpack.dev.js 629 Bytes
一键复制 编辑 原始数据 按行查看 历史
zwwill 提交于 2018-03-06 13:43 +08:00 . fix debug task
const configs = require('./webpack.config.js');
const webpack = require('webpack');
const ip = require('quick-local-ip').getLocalIP4();
const pathTo = require('path');
const chalk = require('chalk');
let config = Array.isArray(configs) ? configs[0] : configs;
config.devServer = {
contentBase: pathTo.join(__dirname, ''),
compress: true,
// hot: true,
host: '0.0.0.0',
public: ip + ':8080/web',
// publicPath: '/dist/',
};
// configs.plugins.push(new webpack.HotModuleReplacementPlugin());
console.log('server is running! Please open ' + chalk.green('http://' + ip + ':8080/web/index.html'));
module.exports = config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mengxisoft/yanxuan-weex-demo.git
git@gitee.com:mengxisoft/yanxuan-weex-demo.git
mengxisoft
yanxuan-weex-demo
yanxuan-weex-demo
master

搜索帮助