Skip to content

Commit

Permalink
pull cms styles from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart committed Jun 2, 2017
1 parent 37e5f95 commit eb6afb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ gulp.task("cms", () => {
.pipe(replace("<% GITHUB_REPOSITORY %>", repo))
.pipe(gulp.dest("./dist/admin"))
.pipe(browserSync.stream());
gulp.src(["./node_modules/netlify-cms/dist/*.*", "!./node_modules/netlify-cms/dist/*.html"])
.pipe(gulp.dest("./dist"))
.pipe(browserSync.stream())
});

gulp.task("build", ["css", "js", "hugo", "cms"]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"gulp-replace": "^0.5.4",
"gulp-util": "^3.0.7",
"imports-loader": "^0.6.5",
"netlify-cms": "^0.3.15",
"netlify-cms": "^0.4.0",
"postcss-cssnext": "^2.7.0",
"postcss-import": "^8.1.2",
"postcss-loader": "^0.9.1",
Expand Down
2 changes: 1 addition & 1 deletion src/cms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<title>Content Manager</title>
<!-- Include the stylesheets from your site here -->
<link rel="stylesheet" href="https://unpkg.com/netlify-cms@^0.3.9/dist/cms.css" />
<link rel="stylesheet" href="/cms.css" />
<!-- Include a CMS specific stylesheet here -->

</head>
Expand Down

0 comments on commit eb6afb0

Please sign in to comment.