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