معرفی شرکت ها


ts-transform-css-modules-0.3.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Extract CSS classnames in TS files
ویژگی مقدار
سیستم عامل -
نام فایل ts-transform-css-modules-0.3.3
نام ts-transform-css-modules
نسخه کتابخانه 0.3.3
نگهدارنده ['longlho']
ایمیل نگهدارنده ['holevietlong@gmail.com']
نویسنده Long Ho
ایمیل نویسنده -
آدرس صفحه اصلی git+https://github.com/longlho/ts-transform-css-modules-transform.git
آدرس اینترنتی https://github.com/longlho/ts-transform-css-modules-transform#readme
مجوز MIT
# ts-transform-css-modules [![Greenkeeper badge](https://badges.greenkeeper.io/longlho/ts-transform-css-modules.svg)](https://greenkeeper.io/) [![npm version](https://badge.fury.io/js/ts-transform-css-modules.svg)](https://badge.fury.io/js/ts-transform-css-modules) [![travis](https://travis-ci.org/longlho/ts-transform-css-modules.svg?branch=master)](https://travis-ci.org/longlho/ts-transform-css-modules) Extract css class names from required css module files for TypeScript. This plugin is based on [css-modules-require-hook](https://github.com/css-modules/css-modules-require-hook) and so constructor opts are from that repo. This allows you to do this in TS files: ```ts // Import works import * as css from 'foo.css' // require also works const foo = require('foo.css') console.log(css.foo) ``` Append this to `before` in your compilation step. See [compile.ts](https://github.com/longlho/ts-transform-css-modules-transform/blob/master/compile.ts#L30-L32) for more info. Right now named imports will not work due to TS mangling import name after compilation. ```ts // Those are NOT working import css from 'foo.css' import { button, badge } from 'foo.css' ``` ## Options See [css-modules-require-hook](https://github.com/css-modules/css-modules-require-hook#tuning-options) for a list of options. ### Custom Options `tsImportResolver (path: string): string`: This callback function allows you to override import path in `ImportDeclaration` for every CSS file we encounter. This is useful when dealing with project that uses `paths` aliases in tsconfig. This might not be necessary once https://github.com/Microsoft/TypeScript/issues/28276 is resolved. ## Caveats 1. Source map support might not be entirely accurate


نیازمندی

مقدار نام
^4.2.3 css-modules-require-hook


زبان مورد نیاز

مقدار نام
8.12.0 Npm


نحوه نصب


نصب پکیج tgz ts-transform-css-modules-0.3.3:

    npm install ts-transform-css-modules-0.3.3.tgz