https://github.com/outstand/postcss-scss-import
https://github.com/outstand/postcss-scss-import
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/outstand/postcss-scss-import
- Owner: outstand
- License: mit
- Created: 2022-09-26T11:53:22.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T11:53:31.000Z (over 3 years ago)
- Last Synced: 2025-01-21T08:11:44.817Z (over 1 year ago)
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# postcss-scss-import
[PostCSS] plugin to deal with scss during import.
[PostCSS]: https://github.com/postcss/postcss
```css
.foo {
/* Input example */
}
```
```css
.foo {
/* Output example */
}
```
## Usage
**Step 1:** Install plugin:
```sh
npm install --save-dev postcss postcss-scss-import
```
**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.
If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.
**Step 3:** Add the plugin to plugins list:
```diff
module.exports = {
plugins: [
+ require('postcss-scss-import'),
require('autoprefixer')
]
}
```
[official docs]: https://github.com/postcss/postcss#usage