Skip to content

Commit 6783885

Browse files
author
schowdhury
committed
(Style|CSS loaders): added, to make the styles effective
1 parent 0b9b017 commit 6783885

File tree

5 files changed

+225
-13
lines changed

5 files changed

+225
-13
lines changed

app/features/auth/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import * as React from 'react';
22
import {connect} from "react-redux";
33
import {Action, Dispatch} from "redux";
44
import {actionCheckIsLoggedIn} from "./actionAuth";
5-
65
import IState from "../../config/IState";
76

7+
import "./style/auth.css";
8+
89
interface ISignupState {
910
status: boolean
1011
}

auth/style/auth.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

package-lock.json

Lines changed: 217 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@
2525
"babel-loader": "^7.1.5",
2626
"babel-preset-env": "^1.7.0",
2727
"babel-preset-react": "^6.24.1",
28+
"css-loader": "^1.0.0",
2829
"extract-text-webpack-plugin": "^3.0.2",
2930
"gulp-less": "^4.0.1",
3031
"html-webpack-plugin": "^3.2.0",
3132
"less-loader": "^4.1.0",
33+
"mini-css-extract-plugin": "^0.4.3",
3234
"source-map-loader": "^0.2.4",
35+
"style-loader": "^0.23.1",
3336
"typescript": "^3.1.2",
3437
"webpack": "^4.20.2",
3538
"webpack-cli": "^3.1.2",

webpack.config.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,9 @@ module.exports = {
2727
},
2828

2929
{
30-
test: /\.less$/,
31-
use: [{
32-
loader: 'style-loader' // creates style nodes from JS strings
33-
}, {
34-
loader: 'css-loader' // translates CSS into CommonJS
35-
}, {
36-
loader: 'less-loader' // compiles Less to CSS
37-
}]
38-
}
30+
test: /\.css$/,
31+
use: [ 'style-loader', 'css-loader' ]
32+
}
3933
]
4034
},
4135
plugins:[

0 commit comments

Comments
 (0)