Skip to content

Commit

Permalink
added sass loader
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas-a committed Sep 24, 2017
1 parent 3412658 commit af5737f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"babel-preset-react": "^6.24.1",
"clean-webpack-plugin": "^0.1.16",
"copy-webpack-plugin": "^4.0.1",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.6",
"css-loader": "^0.28.5",
"eslint": "^4.5.0",
"eslint-plugin-react": "^7.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from 'react';
import {render} from 'react-dom';

import Game from './Components/Game.jsx'
import './style.css';
import './style.scss';

render(<Game/>, document.getElementById('root'));
File renamed without changes.
4 changes: 2 additions & 2 deletions webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ module.exports = {
use: "babel-loader"
},
{
test: /\.css$/,
use: ["style-loader", "css-loader"]
test: /\.scss$/,
use: ["style-loader", "css-loader", "sass-loader"]
},
{
test: /\.(png|jpe?g|svg|gif|ico)/,
Expand Down

0 comments on commit af5737f

Please sign in to comment.