diff options
| -rw-r--r-- | gulpfile.babel.js | 3 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | src/cms/index.html | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 6681944..ce9e001 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -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"]); diff --git a/package.json b/package.json index 69331b7..4c78935 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/cms/index.html b/src/cms/index.html index baa6e33..efa668b 100644 --- a/src/cms/index.html +++ b/src/cms/index.html @@ -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> |
