From d16f5ffa2710874cee209b0a52bc62ae3b695d39 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Sat, 14 Aug 2021 18:54:32 +0200 Subject: [PATCH] Update JS pipeline --- gulpfile.js | 4 +++- src/index.html | 2 +- src/{script/index.js => main.js} | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) rename src/{script/index.js => main.js} (99%) diff --git a/gulpfile.js b/gulpfile.js index 812ed1d..09634e2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -20,8 +20,10 @@ function css() { } function js() { - return gulp.src('./src/script/index.js') + return gulp.src('./src/main.js') + .pipe(sourcemaps.init()) .pipe(terser({ ecma: 5 })) + .pipe(sourcemaps.write('.')) .pipe(gulp.dest('./dist/')); } diff --git a/src/index.html b/src/index.html index 49bd8d5..3cffec0 100644 --- a/src/index.html +++ b/src/index.html @@ -101,6 +101,6 @@ toot on GitHub - + diff --git a/src/script/index.js b/src/main.js similarity index 99% rename from src/script/index.js rename to src/main.js index 60f2417..04c8182 100644 --- a/src/script/index.js +++ b/src/main.js @@ -1,4 +1,4 @@ -/* +/*! toot - Cross-instance share page for Mastodon Copyright (C) 2020-2021 Nikita Karamov