1.1.9 • Published 6 years ago

dci-webui v1.1.9

Weekly downloads
84
License
MIT
Repository
-
Last release
6 years ago

运行项目

1、安装Node、npm包管理器以及依赖模块包

npm install
webpack --progress --colors --config ./ddl.config.js

2、开发环境

webpack-dev-server --config ./frontEndDev.config.js

3、生产环境

webpack

接入API调试

module.exports ={
    devServer: {
            port: 8088,
            publicPath: "/",
            contentBase: BuLID_PAth,
            colors: true,  //终端中输出结果为彩色
            historyApiFallback: true,  //不跳转
            inline: true,  //实时刷新
            proxy: {
                '/api/**': {
                    target: 'http://192.168.200.55:8082/', //更换为你的服务器IP与端口 
                    changeOrigin: true
                }
            }
        }
}

生产环境输出文件夹路径

public

npm 加速

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global

//根据使用情况
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global