From 59f0a2a25862977969517d332f8a797897ba0f14 Mon Sep 17 00:00:00 2001 From: Stephan Date: Fri, 5 Aug 2016 13:38:59 +0200 Subject: [PATCH] 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 --- package.json | 1 - src/components/App.js | 6 ++---- src/components/{app.cssmodule.css => app.css} | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) rename src/components/{app.cssmodule.css => app.css} (97%) diff --git a/package.json b/package.json index 976a1aa..25294a0 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/App.js b/src/components/App.js index 22cb9b6..f96920f 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -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 ( -
+
Yeoman Generator
Please edit src/components/App.js to get started! diff --git a/src/components/app.cssmodule.css b/src/components/app.css similarity index 97% rename from src/components/app.cssmodule.css rename to src/components/app.css index 5199335..cdcfc58 100644 --- a/src/components/app.cssmodule.css +++ b/src/components/app.css @@ -1,4 +1,4 @@ -:global body { +body { margin: 0; padding: 0; font-family: Arial, Helvetica, sans-serif;