Comments (7)
来,分享下原因吧。修改 NODE_ENV 造成了什么影响,如果有必要,fis3 就去掉对 NODE_ENV 的修改。
from fis3.
@2betop
一开始的时候为了美观,就把media定为test和prod
/**********************测试/生产环境下*****************/
fis
.media('test')
.media('prod')
.match(/\.nvmrc$/, {
release : '.nvmrc'
})
以为只是release时指定相应的media就OK了~
但是发布线上的时候,发现有些配置信息拿不到
if (env === 'development') {
config = _.assign(meta, config, dev_config, true);
} else if (env === 'production') {
config = _.assign(meta, config, pro_config, true);
} else if (env === 'test') {
config = _.assign(meta, config, test_config, true);
}
所以这里会是一个坑,其实没必要设置NODE_ENV,建议去掉。
from fis3.
Ok,发版本在此通知
from fis3.
@okoala 这个我当初也纠结过,后来就忘了。艹。。
from fis3.
不应该修改环境变量
from fis3.
好的
在 2015年7月7日,下午10:40,张云龙 [email protected] 写道:
不能修改环境变量
—
Reply to this email directly or view it on GitHub.
from fis3.
[email protected] 已解决此问题。
from fis3.
Related Issues (20)
- 推代码时发邮件认证,未收到验证码,但提示已发送 HOT 1
- Error: write EPIPE 频繁出现的问题 HOT 2
- 自定义组件库引入后依赖的less文件找不到
- 就告诉我作者是不是跑路了? HOT 2
- fis.match不能调用parser自定义方法
- _handle.Pngquant is not a constructor HOT 3
- fis3中cache.jsbug HOT 2
- 麻烦给个支持node版本说明 HOT 6
- optimizer.png-compressor: _handle.Pngcrush is not a constructor是什么意思 HOT 2
- fis3能不能集成rollup HOT 1
- fs3 [ v3.4.45 ] node [ v14.16.0 ] 执行 fis3 release -d ../dist 抛出异常 The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined HOT 2
- 启用了loader插件报message.content.replace is not a function
- fis3-deploy-http-push 的问题 HOT 1
- fis3依赖fis3-deploy-http-push2.0.6,fis3-deploy-http-push2.0.6依赖winston2.1.1,当我升级node版本到14,vue项目编译时报错(node:31521) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency HOT 3
- Update packages to avoid introducing vulnerablities HOT 2
- Trying to get in touch regarding a security issue
- 似乎在mac12.1系统版本里面热更新不生效了 HOT 3
- 在mock/server.conf下配置proxy时,如何替换/删除uri的前缀?
- 增加nodejs 14+支持 HOT 4
- react-router-dom的BrowserRouter,fis-conf该怎么配置才能解决再次刷新页面会显示404这个问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fis3.