const express = require('express');
const app = express();
//Middleware
app.use(express.static(__dirname + '/public/monitor/' ));
app.post('/', function( req ,res){
res.send("Success");
});
app.listen(3000, function(){
console.log('Server running on port 3000');
});
var server = app.listen(3300, function () {
var host = server.address().address;
var port = server.address().port;
console.log('App listening at http://%s:%s', host, port);
});
但是,由于以下错误,它无法运行该页。
Refused to apply style from 'http://localhost:3000/build/development/Monitor/classic/resources/Monitor-all_1.css?_dc=1597650810261' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
sencha website
但这不是ExtJS的GPL版本。所以我无法更新到extjs6.6或7.0。
有什么办法吗?