Update app.js

This commit is contained in:
E 2021-05-21 15:53:57 +01:00 committed by GitHub
parent 24b057dfda
commit 3304a28c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
app.js
View File

@ -3,7 +3,7 @@ var express = require('express');
var path = require('path'); var path = require('path');
var cookieParser = require('cookie-parser'); var cookieParser = require('cookie-parser');
var mLogger = require('morgan'); var mLogger = require('morgan');
var sassMiddleware = require('node-sass-middleware'); var sass = require('node-sass');
var logger = require('./config/winston'); var logger = require('./config/winston');
const helmet = require("helmet"); const helmet = require("helmet");
@ -45,7 +45,7 @@ app.use(
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded({ extended: false })); app.use(express.urlencoded({ extended: false }));
app.use(cookieParser()); app.use(cookieParser());
app.use(sassMiddleware({ app.use(sass.middleware({
src: path.join(__dirname, 'public'), src: path.join(__dirname, 'public'),
dest: path.join(__dirname, 'public'), dest: path.join(__dirname, 'public'),
indentedSyntax: true, // true = .sass and false = .scss indentedSyntax: true, // true = .sass and false = .scss