diff --git a/index.js b/index.js index 1c8b6a8..0279841 100644 --- a/index.js +++ b/index.js @@ -33,8 +33,8 @@ module.exports = { included(app) { this._super.included.apply(this, arguments); // parse options from ember-cli-build - this.options = app && app.options && app.options.cedar; - this.amChartsOptions = this.options && this.options.amCharts; + const options = app && app.options; + this.amChartsOptions = options && options.cedar && options.cedar.amCharts; this.hasAmChartsImports = this.amChartsOptions && this.amChartsOptions.imports && this.amChartsOptions.imports.length > 0; // when bundling scripts, need to also serve the amCharts assets // that those scripts will dynamically load @@ -53,8 +53,7 @@ module.exports = { treeForVendor (vendorTree) { // copy cedar dist files to vendor folder var cedarTree = new Funnel(path.dirname(require.resolve('@esri/cedar/dist/umd/cedar.js')), { - // TODO: other files? source maps etc? - files: ['cedar.js', 'themes/amCharts/calcite.js'], + files: ['cedar.js', 'cedar.js.map', 'themes/amCharts/calcite.js'], destDir: 'cedar' }); var treesToMerge = [vendorTree, cedarTree]; diff --git a/package.json b/package.json index c497c9c..95f6afd 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "ember-cli": "~2.18.0", "ember-cli-dependency-checker": "^2.0.0", "ember-cli-eslint": "^4.2.1", - "ember-cli-github-pages": "0.1.2", + "ember-cli-github-pages": "^0.1.3", "ember-cli-htmlbars-inline-precompile": "^1.0.0", "ember-cli-inject-live-reload": "^1.4.1", "ember-cli-qunit": "^4.1.1",