Skip to content

Commit 59f0a2a

Browse files
authored
Removes dependency to cssmodules - #43 (#44)
As the V4 generator supports projects with and without cssmodules, the template repo may not make assumptions about them being enabled. Closes #43
1 parent 48f7d49 commit 59f0a2a

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"null-loader": "^0.1.1",
7474
"phantomjs-prebuilt": "^2.1.7",
7575
"react-addons-test-utils": "^15.0.1",
76-
"react-css-modules": "^3.7.6",
7776
"react-hot-loader": "^1.3.0",
7877
"rimraf": "^2.5.2",
7978
"sinon": "^1.17.3",

src/components/App.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import React from 'react';
2-
import cssmodules from 'react-css-modules';
3-
import styles from './app.cssmodule.css';
2+
import './app.css';
43

54
const yeomanImage = require('../images/yeoman.png');
65

7-
@cssmodules(styles)
86
class AppComponent extends React.Component {
97

108
render() {
119
return (
12-
<div className="index" styleName="index">
10+
<div className="index">
1311
<img src={yeomanImage} alt="Yeoman Generator" />
1412
<div className="notice">
1513
Please edit <code>src/components/App.js</code> to get started!

src/components/app.cssmodule.css renamed to src/components/app.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:global body {
1+
body {
22
margin: 0;
33
padding: 0;
44
font-family: Arial, Helvetica, sans-serif;

0 commit comments

Comments
 (0)