修复windows环境下css问题

This commit is contained in:
商讯在线 2014-10-24 22:28:07 +08:00
parent 17fd31e16a
commit 682f8f451d
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
"runtime"
"strconv"
"time"
"mime"
"github.com/b3log/wide/conf"
"github.com/b3log/wide/editor"
@ -48,6 +49,11 @@ func init() {
// 定时检查无效会话
session.FixedTimeRelease()
//解决Windows环境下问题
mime.AddExtensionType(".css", "text/css")
mime.AddExtensionType(".js", "application/x-javascript")
mime.AddExtensionType(".json", "application/json")
}
// 登录.

3
wide-ide.bat Normal file
View File

@ -0,0 +1,3 @@
go install
wide
pause