Giter VIP home page Giter VIP logo

Comments (7)

2betop avatar 2betop commented on May 29, 2024

来,分享下原因吧。修改 NODE_ENV 造成了什么影响,如果有必要,fis3 就去掉对 NODE_ENV 的修改。

from fis3.

okoala avatar okoala commented on May 29, 2024

@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.

2betop avatar 2betop commented on May 29, 2024

Ok,发版本在此通知

from fis3.

oxUnd avatar oxUnd commented on May 29, 2024

@okoala 这个我当初也纠结过,后来就忘了。艹。。

from fis3.

fouber avatar fouber commented on May 29, 2024

不应该修改环境变量

from fis3.

oxUnd avatar oxUnd commented on May 29, 2024

好的

在 2015年7月7日,下午10:40,张云龙 [email protected] 写道:

不能修改环境变量


Reply to this email directly or view it on GitHub.

from fis3.

2betop avatar 2betop commented on May 29, 2024

[email protected] 已解决此问题。

from fis3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.