Update JS pipeline
This commit is contained in:
parent
d9dca764cc
commit
d16f5ffa27
3 changed files with 5 additions and 3 deletions
|
@ -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/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in a new issue