Replace node-sass with dart sass
This commit is contained in:
parent
fa0d45fa26
commit
94aa0ca136
3 changed files with 80 additions and 3793 deletions
7
app.js
7
app.js
|
@ -3,7 +3,6 @@ const path = require('path');
|
|||
const logger = require('morgan');
|
||||
const cookieParser = require('cookie-parser');
|
||||
const bodyParser = require('body-parser');
|
||||
// const sassMiddleware = require('node-sass-middleware');
|
||||
const cors = require("cors");
|
||||
const protocol = require("./src/utils/connection");
|
||||
// const favicon = require('serve-favicon');
|
||||
|
@ -30,12 +29,6 @@ app.use(logger('dev'));
|
|||
app.use(bodyParser.json());
|
||||
app.use(bodyParser.urlencoded({ extended: false }));
|
||||
app.use(cookieParser());
|
||||
// app.use(sassMiddleware({
|
||||
// src: path.join(__dirname, 'public'),
|
||||
// dest: path.join(__dirname, 'public'),
|
||||
// indentedSyntax: false, // true = .sass and false = .scss
|
||||
// sourceMap: true
|
||||
// }));
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
|
||||
app.use((req, res, next) => {
|
||||
|
|
3858
package-lock.json
generated
3858
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -3,9 +3,10 @@
|
|||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "node ./bin/www",
|
||||
"watch": "nodemon ./bin/www",
|
||||
"test": "jshint src/ app.js --verbose"
|
||||
"start": "node ./bin/www & npm run scss",
|
||||
"watch": "nodemon ./bin/www & npm run scss",
|
||||
"test": "jshint src/ app.js --verbose",
|
||||
"scss": "sass --watch public/stylesheets"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/express": "^4.17.13",
|
||||
|
@ -21,6 +22,7 @@
|
|||
"md5": "^2.3.0",
|
||||
"morgan": "~1.10.0",
|
||||
"pug": "^3.0.2",
|
||||
"sass": "^1.54.5",
|
||||
"serve-favicon": "~2.5.0",
|
||||
"uuidv4": "^6.2.13"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue