diff options
| author | Mathias Biilmann Christensen <info@mathias-biilmann.net> | 2017-09-02 18:01:04 -0700 |
|---|---|---|
| committer | Mathias Biilmann Christensen <info@mathias-biilmann.net> | 2017-09-02 18:01:04 -0700 |
| commit | 95003f816bf4eee2e8245663a840a6fe47ee06ad (patch) | |
| tree | 7305b44cb5ae1d0a346dbaf9471a1902ab53e5a2 /gulpfile.babel.js | |
| parent | 921ba84a23cfeecdb275939f81ac214450b91583 (diff) | |
Add identity script
Diffstat (limited to 'gulpfile.babel.js')
| -rw-r--r-- | gulpfile.babel.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gulpfile.babel.js b/gulpfile.babel.js index a50a03c..d1420f2 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -19,8 +19,8 @@ const defaultArgs = ["-d", "../dist", "-s", "site"]; gulp.task("hugo", (cb) => buildSite(cb)); gulp.task("hugo-preview", (cb) => buildSite(cb, ["--buildDrafts", "--buildFuture"])); -gulp.task("build", ["css", "js", "hugo"]); -gulp.task("build-preview", ["css", "js", "hugo-preview"]); +gulp.task("build", ["css", "js", "cms-assets", "hugo"]); +gulp.task("build-preview", ["css", "js", "cms-assets", "hugo-preview"]); gulp.task("css", () => ( gulp.src("./src/css/*.css") @@ -33,6 +33,11 @@ gulp.task("css", () => ( .pipe(browserSync.stream()) )); +gulp.task("cms-assets", () => ( + gulp.src("./node_modules/netlify-cms/dist/*.{woff,eot,woff2,ttf,svg,png}") + .pipe(gulp.dest("./dist/css")) +)) + gulp.task("js", (cb) => { const myConfig = Object.assign({}, webpackConfig); @@ -63,7 +68,7 @@ gulp.task("svg", () => { .pipe(gulp.dest("site/layouts/partials/")); }); -gulp.task("server", ["hugo", "css", "js", "svg"], () => { +gulp.task("server", ["hugo", "css", "cms-assets", "js", "svg"], () => { browserSync.init({ server: { baseDir: "./dist" |
