Skip to content

Commit

Permalink
Removes dependency to cssmodules - #43 (#44)
Browse files Browse the repository at this point in the history
As the V4 generator supports projects with and without cssmodules, the
template repo may not make assumptions about them being enabled.

Closes #43
  • Loading branch information
sthzg authored Aug 5, 2016
1 parent 48f7d49 commit 59f0a2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"null-loader": "^0.1.1",
"phantomjs-prebuilt": "^2.1.7",
"react-addons-test-utils": "^15.0.1",
"react-css-modules": "^3.7.6",
"react-hot-loader": "^1.3.0",
"rimraf": "^2.5.2",
"sinon": "^1.17.3",
Expand Down
6 changes: 2 additions & 4 deletions src/components/App.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from 'react';
import cssmodules from 'react-css-modules';
import styles from './app.cssmodule.css';
import './app.css';

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

@cssmodules(styles)
class AppComponent extends React.Component {

render() {
return (
<div className="index" styleName="index">
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="notice">
Please edit <code>src/components/App.js</code> to get started!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:global body {
body {
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
Expand Down

0 comments on commit 59f0a2a

Please sign in to comment.