[refactor] improve build process

This commit is contained in:
zombieFox
2020-08-11 11:01:41 +01:00
parent d4c98b70e7
commit 2e92115bbe
5 changed files with 8 additions and 4 deletions

View File

@ -121,6 +121,9 @@ const build = {
.pipe(htmlmin({ .pipe(htmlmin({
collapseWhitespace: true collapseWhitespace: true
})) }))
.pipe(uglifycss({
"uglyComments": true
}))
.pipe(dest(path.build)) .pipe(dest(path.build))
}, },
fonts: function() { fonts: function() {
@ -157,6 +160,7 @@ const build = {
}, },
initialBackground: function() { initialBackground: function() {
return src(path.src + '/js/initial-background.js') return src(path.src + '/js/initial-background.js')
.pipe(uglify())
.pipe(dest(path.build + '/js')) .pipe(dest(path.build + '/js'))
} }
} }

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "nightTab", "name": "nightTab",
"version": "6.0.0", "version": "6.1.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "nightTab", "name": "nightTab",
"version": "6.0.0", "version": "6.1.0",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
var version = (function() { var version = (function() {
var current = "6.0.0"; var current = "6.1.0";
var name = "Jaded Raven"; var name = "Jaded Raven";

View File

@ -2,7 +2,7 @@
"name": "nightTab", "name": "nightTab",
"short_name": "nightTab", "short_name": "nightTab",
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
"version": "6.0.0", "version": "6.1.0",
"manifest_version": 2, "manifest_version": 2,
"chrome_url_overrides": { "chrome_url_overrides": {
"newtab": "index.html" "newtab": "index.html"