在部署我们的应用程序之后,当我第一次加载这个页面和app.css时,我将得到一个HTTP500。第一次给出一个http 500,然后正确加载。我在开发工具中观察到,当我第一次加载它时,app.css和admin.css都是空的。如何使此问题在调试模式下发生?它只发生在QA或prod上。
GET http://vpn.myweb.com/css/bundles/admin.css net::ERR_ABORTED 500 (Internal Server Error)
GET http://vpn.myweb.com/css/bundles/app.css net::ERR_ABORTED
我已经尝试了一段时间了。每次在我的终端中运行grunt时,我都会得到以下错误:
User$: grunt
Loading "Gruntfile.js" tasks...ERROR
>> SyntaxError: Unexpected identifier
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
这是我的GruntFile.js
module.exports = function (grunt) {
grunt