Skip to content

Instantly share code, notes, and snippets.

@kwk
Created September 6, 2011 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwk/1197242 to your computer and use it in GitHub Desktop.
Save kwk/1197242 to your computer and use it in GitHub Desktop.
Ext.require("Ext.app.Application");
Ext.application({
name: 'MyApp',
launch: function() {
Ext.create('Ext.container.Viewport', {
items: {
html: 'My App'
}
});
}
});
Failed to load resource: the server responded with a status of 404 (Not Found)
Ext-more.js:788Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.Application
Ext-more.js:794
Object
Ext-more.js:800console.trace()
Ext.apply.logExt-more.js:800
Ext.Error.Ext.extend.statics.raiseError.js:183
Loader.Ext.Loader.requireLoader.js:700
(anonymous function)Function.js:159
(anonymous function)app.js:1
Error.js:190Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.Application
<!DOCTYPE html>
<html lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<style type="text/css">
.sprite {
-one-sprite-selector-for-group: sprite;
/* The below statement will run the sprite through some post-processing tools */
/*-one-image-postprocess: pngquant(256) pngcrush(-rem alla) optipng;*/
}
</style>
</head>
<body>
<script>
one.include('Ext:../resources/css/ext-all.css');
one.include('extsdk:Foundation');
one.include('extsdk:Extras');
one.include('extsdk:DOM');
one.include('Ext:app/Application.js');
</script>
<script>
/* Set loader to false when switching to production build */
Ext.Loader.setConfig({
enabled: false,
paths: {
Ext: '3rdparty/ExtJS/src'
}
});
Ext.BLANK_IMAGE_URL = one.getStaticUrl('3rdparty/ExtJS/resources/themes/images/access/tree/s.gif');
</script>
<script src="js/YourApp/app.js"></script>
</body>
</html>
kleine@mrburns:~/public_html/webapp-skel$ make development
buildDevelopment \
--cssimports \
--root=http-pub \
--label Ext:extJs4Dir=http-pub/3rdparty/ExtJS/src --label extsdk=http-pub/3rdparty/ExtJS/build/sdk.jsb3 \
http-pub/index.html.template
0.008 secs: registerLabelsAsCustomProtocols
0.004 secs: loadAssets
0.000 secs: moveAssets
resolvers.extJS4Dir: Skipping core/Element.js (not found)
resolvers.extJS4Dir: Skipping core/Element.js (not found)
resolvers.extJS4Dir: Skipping core/Element.js (not found)
2.075 secs: populate
0.011 secs: injectOneBootstrapper
0.102 secs: flattenStaticIncludes
0.406 secs: removeAssets
0.000 secs: inlineRelations
0.003 secs: convertHtmlStylesToInlineCssImports
0.000 secs: inlineRelations
0.004 secs: prettyPrintAssets
0.000 secs: prettyPrintAssets
0.011 secs: runJavaScriptConditionalBlocks
0.002 secs: prettyPrintAssets
0.012 secs: writeAssetsToDisc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment