Browse Source

add config-browser.js

Herbert Vojčík 8 years ago
parent
commit
61d1382780
2 changed files with 6 additions and 6 deletions
  1. 4 6
      root/Gruntfile.js
  2. 2 0
      root/config-browser.js

+ 4 - 6
root/Gruntfile.js

@@ -51,14 +51,13 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "amber/Platform": '/*stub*/',
-                        "app": 'define(["deploy"],function(x){return x});define("amber/Platform",["amber_core/Platform-Browser"],{});'
+                        "app": 'define(["deploy"],function(x){return x});'
                     },
                     pragmas: {
                         excludeIdeData: true,
                         excludeDebugContexts: true
                     },
-                    include: ['config', 'node_modules/requirejs/require', 'app'],
+                    include: ['config', 'config-browser', 'node_modules/requirejs/require', 'app'],
                     optimize: "uglify2",
                     out: "the.js"
                 }
@@ -67,10 +66,9 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "amber/Platform": '/*stub*/',
-                        "app": 'define(["devel"],function(x){return x});define("amber/Platform",["amber_core/Platform-Browser"],{});'
+                        "app": 'define(["devel"],function(x){return x});'
                     },
-                    include: ['config', 'node_modules/requirejs/require', 'app'],
+                    include: ['config', 'config-browser', 'node_modules/requirejs/require', 'app'],
                     exclude: ['devel'],
                     out: "the.js"
                 }

+ 2 - 0
root/config-browser.js

@@ -0,0 +1,2 @@
+define("amber/Platform", ["amber_core/Platform-Browser"], {});
+define("amber/compatibility", ["amber/browser-compatibility"], {});