# babel-plugin-sass-export

> Convert imported SASS files to exported CSS string

Latest version **0.0.3** (published 2018-01-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install babel-plugin-sass-export
pnpm add babel-plugin-sass-export
yarn add babel-plugin-sass-export
bun add babel-plugin-sass-export
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-01-07 |
| First published | 2018-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Matt Davies |
| Maintainers | mattpauldavies |
| Keywords | babel, plugin, sass |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-sass-export
- Repository: https://github.com/mattpauldavies/babel-plugin-sass-export
- Homepage: https://github.com/mattpauldavies/babel-plugin-sass-export#readme
- Issues: https://github.com/mattpauldavies/babel-plugin-sass-export/issues
- npm.io page: https://npm.io/package/babel-plugin-sass-export

## Dependencies (1)

- [node-sass](https://npm.io/package/node-sass.md) ^4.7.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2018-01-07
- 0.0.2 — 2018-01-07
- 0.0.1 — 2018-01-06

## README

# SASS Export
**Babel Plugin**

Simple Babel plugin to parse SASS files and export your styles as a string.

*We use this at Mudano with [Fractal](https://fractal.build/) to help document our design library [UI React](https://github.com/Mudano/ui-react).*


### Installation

*NB: not yet published to NPM*

    $ yarn add babel-plugin-sass-export --dev

### Usage

Create your React component as you usually would and import your SASS files.

    import './my-sass.scss';

    function Component() {
        return <div className="my-class">My Component</div>;
    }

    export default Component;

The plugin converts your SASS into a CSS string. The string is exported with your component for use as you see fit.

    const style = '.my-class{background:red}';
    export { style };

    function Component() {
        return <div className="my-class">My Component</div>;
    }

    export default Component;

### Issues

This plugin is not designed for production use.

Bundling your SASS with something like [Webpack](https://webpack.js.org/) is likely a better choice.

Feel free to [report issues or add comments](https://github.commattpauldavies/babel-plugin-sass-export/issues).

---
_Source: https://npm.io/package/babel-plugin-sass-export · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
