Update app.js

This commit is contained in:
E 2021-05-21 16:34:07 +01:00 committed by GitHub
parent a644bdde76
commit cee74f4474
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 sass = require('node-sass'); var sassMiddleware = require('node-sass-middleware');
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(sass.middleware({ app.use(sassMiddleware({
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