#Mime type with assetProtocol

6 messages · Page 1 of 1 (latest)

ebon cloud
#

Can we set mime type on loading file with assetProtocol config?
Like

app": {
    "security": {
      "assetProtocol": {
        "scope": [
          "$APPDATA/plugins/**"
        ],
        "mimeTypes": {
          ".js": "application/javascript",
          ".mjs": "application/javascript",
          ".json": "application/json"
        }
      },
#

(mimetypes doesn't exist on assetProtocol config)

feral echo
ebon cloud
#

I just need to load js/ts file so the mime type is application/javascript

#

(I guess)

ebon cloud
#

Nvm got it, it doesn't recognise tsx files.
js files is ok