Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Sesion3-de-Sass-a-PostCSS/without-sass/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ var simplevars = require('postcss-simple-vars');
var cssimport = require('postcss-import');
var mixins = require('postcss-mixins');
var nested = require('postcss-nested');
var browserSync = require('browser-sync').create();


gulp.task('serve', function() {
browserSync.init({
server: "./",
port: '8082'
});
});

gulp.task('css', function() {
var processors = [
Expand All @@ -21,7 +30,9 @@ gulp.task('css', function() {

gulp.task('watch', function() {
gulp.watch('src/**/*.css', ['css']);
gulp.watch("src/**/*.html").on('change', browserSync.reload);
gulp.watch("src/**/*.css").on('change', browserSync.reload);
});


gulp.task('default', ['css', 'watch']);
gulp.task('default', ['css', 'serve', 'watch']);
5 changes: 3 additions & 2 deletions Sesion3-de-Sass-a-PostCSS/without-sass/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "withoutSass",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand All @@ -11,11 +10,13 @@
"license": "ISC",
"devDependencies": {
"autoprefixer": "^6.3.6",
"browser-sync": "^2.12.4",
"gulp": "^3.9.1",
"gulp-postcss": "^6.1.0",
"postcss-import": "^8.1.0",
"postcss-mixins": "^4.0.1",
"postcss-nested": "^1.0.0",
"postcss-simple-vars": "^1.2.0"
}
},
"description": ""
}
12 changes: 12 additions & 0 deletions Sesion3-de-Sass-a-PostCSS/without-sass/src/html/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="../../dest/style.css">
</head>
<body>
<h1>Pruebas de reload html y css</h1>

</body>
</html>