From 7394180c747d886c907fc8669487a51850fec733 Mon Sep 17 00:00:00 2001 From: Chris Whittle Date: Thu, 11 Jan 2018 12:25:43 -0600 Subject: [PATCH 1/2] add css to the script --- index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index fa1926c..1f65d57 100644 --- a/index.js +++ b/index.js @@ -12,12 +12,20 @@ module.exports = { return tree; } - return mergeTrees([tree, concat(tree, { + const jsTree = mergeTrees([tree, concat(tree, { headerFiles: [ 'assets/vendor.js', `assets/${this.project.pkg.name}.js` ], outputFile: 'assets/app.js' })]); + + return mergeTrees([jsTree, concat(jsTree, { + headerFiles: [ + 'assets/vendor.css', + `assets/${this.project.pkg.name}.css` + ], + outputFile: 'assets/app.css' + })]); } }; From 3eff7429c17a1956b527baea47034b868ade565c Mon Sep 17 00:00:00 2001 From: Chris Whittle Date: Thu, 11 Jan 2018 12:27:59 -0600 Subject: [PATCH 2/2] add examples to Readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 969fad5..de576d7 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,18 @@ This addon combines your `vendor.js` and `.js` into a single file called `app.js`. +This addon combines your `css.js` and `.css` into a single +file called `app.css`. + You also need to update your `app/index.html`: ```html + + + + + +