Skip to content

Commit

Permalink
feat: sass plugin for scss support
Browse files Browse the repository at this point in the history
  • Loading branch information
wialy committed Feb 4, 2021
1 parent f88bc0f commit 3558591
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 2 deletions.
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@snowpack/plugin-dotenv": "^2.0.5",
"@snowpack/plugin-react-refresh": "^2.4.0",
"@snowpack/plugin-run-script": "^2.3.0",
"@snowpack/plugin-sass": "^1.3.0",
"@snowpack/plugin-typescript": "^1.2.1",
"@snowpack/web-test-runner-plugin": "^0.2.1",
"@types/react": "^17.0.1",
Expand Down
1 change: 1 addition & 0 deletions snowpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ module.exports = {
watch: 'npm run lint:watch',
},
],
['@snowpack/plugin-sass', {}],
'@snowpack/plugin-react-refresh',
'@snowpack/plugin-dotenv',
'@snowpack/plugin-typescript',
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { render } from 'react-dom';

import { App } from '~/App';

import './style.css';
import './style.scss';

render(
<React.StrictMode>
Expand Down
4 changes: 3 additions & 1 deletion src/style.css → src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ body {
height: 100%;
}

$color: black;

.container {
width: 100%;
height: 100%;
Expand All @@ -16,5 +18,5 @@ body {
align-items: center;
justify-content: center;
font-size: 5em;
background-color: black;
background-color: $color;
}

0 comments on commit 3558591

Please sign in to comment.