pull/1129/head
Luca Di Leo 2022-02-01 08:06:34 -08:00
rodzic c8377be230
commit a325cf1f98
3 zmienionych plików z 1 dodań i 49 usunięć

Wyświetl plik

@ -1,36 +0,0 @@
// Sass configuration
var gulp = require("gulp"),
sass = require("gulp-sass"),
postcss = require("gulp-postcss"),
autoprefixer = require("autoprefixer"),
cssnano = require("cssnano"),
sourcemaps = require("gulp-sourcemaps");
function watch() {
style();
gulp.watch('css/*.scss', style);
}
function style() {
return (
gulp
.src('css/*.scss')
.pipe(sourcemaps.init())
.pipe(sass())
.on("error", sass.logError)
// Aggiungiamo i prefissi dove serve e minifichiamo
.pipe(postcss([autoprefixer(), cssnano()]))
// Le sourcemaps non fanno mai male
.pipe(sourcemaps.write("."))
.pipe(gulp.dest(function(f) {
return "./css";
}))
);
}
exports.watch = watch;
exports.style = style;

Wyświetl plik

@ -68,13 +68,6 @@
"url-loader": "^0.5.7",
"webpack": "^4.16.2",
"webpack-bundle-tracker": "0.0.93",
"webpack-livereload-plugin": "^2.1.1",
"autoprefixer": "^9.8.4",
"cssnano": "^4.1.10",
"gulp": "^4.0.2",
"gulp-postcss": "^8.0.0",
"gulp-sass": "^4.1.0",
"gulp-sourcemaps": "^2.6.5",
"node-sass": "^5.0.0"
"webpack-livereload-plugin": "^2.1.1"
}
}

Wyświetl plik

@ -55,11 +55,6 @@ if [ "$1" = "--setup-devenv" ] || [ "$2" = "--setup-devenv" ]; then
echo Build translations...
python manage.py translate build --safe
echo Setup gulp watch...
cd app/static/admin
npm rebuild node-sass
gulp watch &
cd /webodm
echo Setup webpack watch...