mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 09:23:21 +01:00
Cleanup css and gulpfile post-migration
This commit is contained in:
parent
3f222854e4
commit
bc73cbdbfe
42
gulpfile.js
42
gulpfile.js
@ -179,6 +179,26 @@ const jsFiles = [
|
||||
'popup',
|
||||
]
|
||||
|
||||
// scss compilation and autoprefixing tasks
|
||||
|
||||
gulp.task('build:scss', function () {
|
||||
return gulp.src('ui/app/css/index.scss')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(autoprefixer())
|
||||
.pipe(gulp.dest('ui/app/css/output'))
|
||||
});
|
||||
gulp.task('watch:scss', function () {
|
||||
return gulp.src('ui/app/css/index.scss')
|
||||
.pipe(watch('ui/app/css/**/*.scss'))
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(autoprefixer())
|
||||
.pipe(gulp.dest('ui/app/css/output'))
|
||||
});
|
||||
|
||||
// bundle tasks
|
||||
|
||||
var jsDevStrings = jsFiles.map(jsFile => `dev:js:${jsFile}`)
|
||||
@ -191,28 +211,6 @@ jsFiles.forEach((jsFile) => {
|
||||
|
||||
gulp.task('dev:js', gulp.parallel(...jsDevStrings))
|
||||
gulp.task('build:js', gulp.parallel(...jsBuildStrings))
|
||||
gulp.task('build:scss', function () {
|
||||
return gulp.src('ui/app/css/index.scss')
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(autoprefixer())
|
||||
.pipe(gulp.dest('ui/app/css/output'));
|
||||
});
|
||||
gulp.task('watch:scss', function () {
|
||||
return gulp.src('ui/app/css/index.scss')
|
||||
.pipe(watch('ui/app/css/**/*.scss'))
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(sass().on('error', sass.logError))
|
||||
.pipe(sourcemaps.write())
|
||||
.pipe(autoprefixer())
|
||||
.pipe(gulp.dest('ui/app/css/output'));
|
||||
});
|
||||
|
||||
gulp.task('copy:watch', function(){
|
||||
gulp.watch(['./app/{_locales,images}/*', './app/scripts/chromereload.js', './app/*.{html,json}'], gulp.series('copy'))
|
||||
})
|
||||
|
||||
|
||||
// disc bundle analyzer tasks
|
||||
|
||||
|
@ -845,7 +845,7 @@ div.message-container > div:first-child {
|
||||
width: 100px;
|
||||
height: 50px;
|
||||
font-size: .7em;
|
||||
background: white;
|
||||
background: green;
|
||||
border: 1px solid;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -4,11 +4,7 @@ const path = require('path')
|
||||
module.exports = bundleCss
|
||||
|
||||
var cssFiles = {
|
||||
// 'fonts.css': fs.readFileSync(path.join(__dirname, '/app/css/fonts.css'), 'utf8'),
|
||||
// 'reset.css': fs.readFileSync(path.join(__dirname, '/app/css/reset.css'), 'utf8'),
|
||||
// 'lib.css': fs.readFileSync(path.join(__dirname, '/app/css/lib.css'), 'utf8'),
|
||||
'index.css': fs.readFileSync(path.join(__dirname, '/app/css/output/index.css'), 'utf8'),
|
||||
// 'transitions.css': fs.readFileSync(path.join(__dirname, '/app/css/transitions.css'), 'utf8'),
|
||||
'react-tooltip-component.css': fs.readFileSync(path.join(__dirname, '..', 'node_modules', 'react-tooltip-component', 'dist', 'react-tooltip-component.css'), 'utf8'),
|
||||
'react-css': fs.readFileSync(path.join(__dirname, '..', 'node_modules', 'react-select', 'dist', 'react-select.css'), 'utf8'),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user