Skip to content

Commit

Permalink
Switch CSS to SASS
Browse files Browse the repository at this point in the history
  • Loading branch information
gnowland committed May 14, 2019
1 parent 4ce9f1b commit 8a4383a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
7 changes: 7 additions & 0 deletions app.js
Expand Up @@ -3,6 +3,7 @@ var express = require('express');
var path = require('path');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
var sassMiddleware = require('node-sass-middleware');

var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users');
Expand All @@ -17,6 +18,12 @@ app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(sassMiddleware({
src: path.join(__dirname, 'public'),
dest: path.join(__dirname, 'public'),
indentedSyntax: true, // true = .sass and false = .scss
sourceMap: true
}));
app.use(express.static(path.join(__dirname, 'public')));

app.use('/', indexRouter);
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -17,6 +17,7 @@
"express": "~4.16.1",
"http-errors": "~1.6.3",
"morgan": "~1.9.1",
"node-sass-middleware": "0.11.0",
"request": "^2.88.0"
},
"devDependencies": {}
Expand Down
8 changes: 0 additions & 8 deletions public/stylesheets/style.css

This file was deleted.

6 changes: 6 additions & 0 deletions public/stylesheets/style.sass
@@ -0,0 +1,6 @@
body
padding: 50px
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif

a
color: #00B7FF

0 comments on commit 8a4383a

Please sign in to comment.