Add build process to compile and minify less files
This commit is contained in:
parent
56cca63b2d
commit
b2e741bffa
6 changed files with 4352 additions and 2 deletions
|
@ -15,4 +15,7 @@
|
|||
<PackageReference Include="mysqlconnector" Version="0.52.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="BuildCss" BeforeTargets="Build">
|
||||
<Exec WorkingDirectory="$(ProjectDir)" Command="node_modules\.bin\gulp" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
10
Website/gulpfile.js
Normal file
10
Website/gulpfile.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
var gulp = require("gulp"),
|
||||
less = require("gulp-less"),
|
||||
cleanCss = require("gulp-clean-css");
|
||||
|
||||
gulp.task("default", function () {
|
||||
return gulp.src('wwwroot/css/*.less')
|
||||
.pipe(less())
|
||||
.pipe(cleanCss())
|
||||
.pipe(gulp.dest('wwwroot/css'));
|
||||
});
|
4315
Website/package-lock.json
generated
Normal file
4315
Website/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
18
Website/package.json
Normal file
18
Website/package.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "website",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"devDependencies": {
|
||||
"gulp": "^4.0.0",
|
||||
"gulp-clean-css": "^4.0.0",
|
||||
"gulp-less": "^4.0.1"
|
||||
},
|
||||
"dependencies": {},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "Robert Marshall",
|
||||
"license": "ISC",
|
||||
"private": true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue