Skip to content

Commit

Permalink
Included jsoneditor.css as a Main Component
Browse files Browse the repository at this point in the history
Added the css file to bower so that the css will be identified as a main component used. Making this change allows gulp to identify the css and inject it into the project automatically at build time.

Executing the following shell commands:

    yo gulp-angular
    bower install jsoneditor --save
    gulp build

will result in the index.html automatically being injected as seen below:

    <!-- bower:css -->
    <link rel="stylesheet" href="../bower_components/jsoneditor/jsoneditor.css" />
    <!-- endbower -->
    <!-- endbuild -->

    <!-- build:js scripts/vendor.js -->
    <!-- bower:js -->
    <script src="../bower_components/jsoneditor/jsoneditor.min.js"></script>
    <!-- endbower -->
    <!-- endbuild -->
  • Loading branch information
Dean Poulin committed Nov 13, 2014
1 parent 66f41d8 commit 3348dfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"type": "git",
"url": "https://github.com/josdejong/jsoneditor.git"
},
"main": "jsoneditor.min.js",
"main": [
"jsoneditor.min.js",
"jsoneditor.css"
],
"bugs": "https://github.com/josdejong/jsoneditor/issues",
"ignore": [
"app",
Expand Down

0 comments on commit 3348dfc

Please sign in to comment.