Created
June 13, 2014 10:56
-
-
Save artyomtrityak/ad75e4c83e0e1d372c96 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirejs: | |
options: | |
baseUrl: '.' | |
appDir: 'public/app' | |
mainConfigFile: 'public/app/config.js' | |
waitSeconds: 60 | |
optimize: 'uglify2' | |
removeCombined: true | |
preserveLicenseComments: false | |
useStrict: true | |
modules: [ | |
name: 'config' | |
exclude: ['json!properties'] | |
] | |
en: | |
options: | |
dir: 'app_builds/en' | |
ru: | |
options: | |
dir: 'app_builds/ru' | |
locale: 'ru-ru' | |
onBuildRead: (name, path, content) -> | |
console.log name | |
if name is 'config' | |
content = content.replace "locale: 'root'", "locale: 'ru-ru'" | |
content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment