browser classes

This commit is contained in:
Kyle Spearrin 2018-04-13 22:29:31 -04:00
parent 74dea938c8
commit 9d81843643
2 changed files with 6 additions and 4 deletions

View File

@ -54,7 +54,7 @@ function distFileName(browserName, ext) {
function dist(browserName, manifest) { function dist(browserName, manifest) {
return gulp.src(paths.build + '**/*') return gulp.src(paths.build + '**/*')
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.safari))) .pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.safari)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', browserName))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_' + browserName)))
.pipe(gulpif('manifest.json', jeditor(manifest))) .pipe(gulpif('manifest.json', jeditor(manifest)))
.pipe(zip(distFileName(browserName, 'zip'))) .pipe(zip(distFileName(browserName, 'zip')))
.pipe(gulp.dest(paths.dist)); .pipe(gulp.dest(paths.dist));
@ -114,7 +114,7 @@ function edgeCopyBuild(source, dest) {
gulp.src(source) gulp.src(source)
.on('error', reject) .on('error', reject)
.pipe(filter(['**'].concat(filters.fonts).concat(filters.safari))) .pipe(filter(['**'].concat(filters.fonts).concat(filters.safari)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'edge'))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_edge')))
.pipe(gulpif('manifest.json', jeditor((manifest) => { .pipe(gulpif('manifest.json', jeditor((manifest) => {
delete manifest.applications; delete manifest.applications;
delete manifest.sidebar_action; delete manifest.sidebar_action;
@ -167,7 +167,7 @@ function safariCopyBuild(source, dest) {
gulp.src(source) gulp.src(source)
.on('error', reject) .on('error', reject)
.pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.webExt))) .pipe(filter(['**'].concat(filters.edge).concat(filters.fonts).concat(filters.webExt)))
.pipe(gulpif('popup/index.html', replace('__BROWSER__', 'safari'))) .pipe(gulpif('popup/index.html', replace('__BROWSER__', 'browser_safari')))
.pipe(gulp.dest(dest)) .pipe(gulp.dest(dest))
.on('end', resolve); .on('end', resolve);
}); });

View File

@ -1,8 +1,10 @@
@import "variables.scss"; @import "variables.scss";
/*
html.browser_firefox, html.browser_edge { html.browser_firefox, html.browser_edge {
body { body {
width: 320px !important; width: 320px !important;
height: 568px !important; height: 568px !important;
} }
} }
*/