style: use " instead of ' in Gulpfile
This commit is contained in:
parent
faf3c4c3a8
commit
97170dcb44
32
Gulpfile.js
32
Gulpfile.js
@ -1,19 +1,19 @@
|
|||||||
const gulp = require('gulp');
|
const gulp = require("gulp");
|
||||||
const sass = require('gulp-sass')(require('sass'));
|
const sass = require('gulp-sass')(require("sass"));
|
||||||
const cleanCSS = require('gulp-clean-css');
|
const cleanCSS = require("gulp-clean-css");
|
||||||
const rename = require('gulp-rename');
|
const rename = require("gulp-rename");
|
||||||
const ts = require('gulp-typescript');
|
const ts = require("gulp-typescript");
|
||||||
const terser = require('gulp-terser');
|
const terser = require("gulp-terser");
|
||||||
const webpack = require('webpack-stream');
|
const webpack = require("webpack-stream");
|
||||||
|
|
||||||
const srcDir = 'src';
|
const srcDir = "src";
|
||||||
const destDir = 'OliverBooth/wwwroot';
|
const destDir = "OliverBooth/wwwroot";
|
||||||
|
|
||||||
function compileSCSS() {
|
function compileSCSS() {
|
||||||
return gulp.src(`${srcDir}/scss/**/*.scss`)
|
return gulp.src(`${srcDir}/scss/**/*.scss`)
|
||||||
.pipe(sass().on('error', sass.logError))
|
.pipe(sass().on("error", sass.logError))
|
||||||
.pipe(cleanCSS({ compatibility: 'ie11' }))
|
.pipe(cleanCSS({compatibility: "ie11"}))
|
||||||
.pipe(rename({ suffix: '.min' }))
|
.pipe(rename({suffix: ".min"}))
|
||||||
.pipe(gulp.dest(`${destDir}/css`));
|
.pipe(gulp.dest(`${destDir}/css`));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -25,20 +25,20 @@ function compileTS() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function bundleJS() {
|
function bundleJS() {
|
||||||
return gulp.src('tmp/js/*.js')
|
return gulp.src("tmp/js/*.js")
|
||||||
.pipe(webpack({ mode: 'production', output: { filename: 'app.min.js' } }))
|
.pipe(webpack({ mode: "production", output: { filename: "app.min.js" } }))
|
||||||
.pipe(gulp.dest(`${destDir}/js`));
|
.pipe(gulp.dest(`${destDir}/js`));
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyJS() {
|
function copyJS() {
|
||||||
return gulp.src(`${srcDir}/ts/**/*.js`)
|
return gulp.src(`${srcDir}/ts/**/*.js`)
|
||||||
.pipe(rename({ suffix: '.min' }))
|
.pipe(rename({suffix: ".min"}))
|
||||||
.pipe(gulp.dest(`${destDir}/js`));
|
.pipe(gulp.dest(`${destDir}/js`));
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyCSS() {
|
function copyCSS() {
|
||||||
return gulp.src(`${srcDir}/scss/**/*.css`)
|
return gulp.src(`${srcDir}/scss/**/*.css`)
|
||||||
.pipe(rename({ suffix: '.min' }))
|
.pipe(rename({suffix: ".min"}))
|
||||||
.pipe(gulp.dest(`${destDir}/css`));
|
.pipe(gulp.dest(`${destDir}/css`));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user