Update JS pipeline

This commit is contained in:
Nikita Karamov 2021-08-14 18:54:32 +02:00
parent d9dca764cc
commit d16f5ffa27
No known key found for this signature in database
GPG key ID: 7FCADEDBB1AEBE44
3 changed files with 5 additions and 3 deletions

View file

@ -20,8 +20,10 @@ function css() {
} }
function js() { function js() {
return gulp.src('./src/script/index.js') return gulp.src('./src/main.js')
.pipe(sourcemaps.init())
.pipe(terser({ ecma: 5 })) .pipe(terser({ ecma: 5 }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('./dist/')); .pipe(gulp.dest('./dist/'));
} }

View file

@ -101,6 +101,6 @@
<a href="https://github.com/NickKaramoff/toot">toot on GitHub</a> <a href="https://github.com/NickKaramoff/toot">toot on GitHub</a>
</section> </section>
</footer> </footer>
<script src="/index.js"></script> <script src="/main.js"></script>
</body> </body>
</html> </html>

View file

@ -1,4 +1,4 @@
/* /*!
toot - Cross-instance share page for Mastodon toot - Cross-instance share page for Mastodon
Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev> Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev>