Skip to content

Commit

Permalink
Added SASS configuration to webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianDavidCabrera committed May 15, 2019
1 parent 468fb0c commit de16342
Show file tree
Hide file tree
Showing 8 changed files with 1,317 additions and 20 deletions.
1,324 changes: 1,309 additions & 15 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"css-loader": "^2.1.1",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"node-sass": "^4.12.0",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"webpack": "^4.31.0",
"webpack-cli": "^3.3.2"
Expand Down
4 changes: 1 addition & 3 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import './styles/reset.css'
import './styles/navbar.css'
import './styles/index.css'
import './styles/index.scss'

console.log('Hello World');
File renamed without changes.
File renamed without changes.
Empty file added src/styles/_variables.scss
Empty file.
3 changes: 3 additions & 0 deletions src/styles/index.css → src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import "reset";
@import "navbar";

* {
font-family: 'Roboto', Verdana;
}
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports = {
module:{
rules:[
{
test:/\.css$/,
use: ['style-loader','css-loader']
test:/\.scss$/,
use: ['style-loader','css-loader','sass-loader']
},
],
},
Expand Down

0 comments on commit de16342

Please sign in to comment.