Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom MIME TYPES in karma.config.js #1735

Comments

@comdiv
Copy link
Contributor

comdiv commented Dec 1, 2015

For example - default mime.js maps *.ts is video\mp2t.
While we don't have to fix mime.js itself we should be able to provide ability to set mime explicitly in config.

Advice - use format close to mime.js:

{
    mime : {
            "text/x-typescript":["ts","tsx"]
     },
}

Each property maps to mimetype and array value to extensions.

Have implement it myself. Pull request is coming

comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
Allows setup mimetype mapping for file extensions (for ex. fix *.ts mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
Allows to setup required mime-type to extensions mapping (for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 1, 2015
Allows to setup required mime-type to extensions mapping
(for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 2, 2015
Allows to setup required mime-type to extensions mapping
(for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 2, 2015
Allows to setup required mime-type to extensions mapping
(for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 2, 2015
Allows to setup required mime-type to extensions mapping
(for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 2, 2015
Allows to setup required mime-type to extensions mapping
(for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
comdiv added a commit to comdiv/karma that referenced this issue Dec 2, 2015
Allows to setup required mime-type to extensions mapping
(for ex. fix default *.ts to video/mp2t mapping)

Closes karma-runner#1735
dignifiedquire added a commit that referenced this issue Jan 4, 2016
Mime config option support #1735 Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment