NodeJS local modules for complex application structures

前端 未结 3 1734
刺人心
刺人心 2021-01-06 12:05

I\'m currently part of team building a Windows 8 application using JavaScript. We are using npm and browserify to manage dependencies and convert our modules to AMD browser

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-06 12:17

    One thing you could possibly do is create an alias for your helpers in your require config...

    require.config({
        paths: {
            "helpers": "my/app/lib/helpers"    
        }
    });
    

    That would cut down on some of your long paths.

提交回复
热议问题