1 Star 0 Fork 16

小傻瓜 / rainbond-ui

forked from 好雨科技 / rainbond-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.webpackrc.js 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
wangch 提交于 2018-11-30 16:43 . [REV] build code
var path = require("path");
console.log(process.env.NODE_ENV);
export default {
entry: "src/index.js",
extraBabelPlugins: [
[
"import",
{
libraryName: "antd",
libraryDirectory: "es",
style: true,
},
],
],
env: {
development: {
extraBabelPlugins: ["dva-hmr"],
html: {
template: "./src/index.ejs",
},
publicPath: "/", ///
},
production: {
html: {
filename: "./index.html", //
template: "./src/index.ejs",
},
publicPath: "/static/dists/", //
// outputPath: path.resolve(__dirname, "../../pythonWork/rainbond-console/www/static/dists"),
// outputPath: path.resolve(__dirname, "/static/dists"),
},
},
ignoreMomentLocale: true,
theme: "./src/theme.js",
disableDynamicImport: true,
hash: true,
proxy: {
"/api": {
target: "http://5000.gra4b2e5.goodrain.ali-hz.goodrain.net/",
changeOrigin: true,
pathRewrite: {
"^/api": "",
},
},
},
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/little_fool/rainbond-ui.git
git@gitee.com:little_fool/rainbond-ui.git
little_fool
rainbond-ui
rainbond-ui
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891