Commit 9f5c94b9ccedb47c10c42b39a76bdd17af6692a7
`cssify` and `require-css-modules-hook` instead of `sheetify`
Michael Williams committed on 12/28/2015, 12:23:22 AMParent: 00fce82fda471a7156efa91c8394284f90e88743
Files changed
app/components/landing/index.css | added |
app/components/landing/index.js | added |
app/containers/landing.js | changed |
app/package.json | changed |
package.json | changed |
server.js | changed |
app/components/landing/index.js | ||
---|---|---|
@@ -1,0 +1,13 @@ | ||
1 | +const React = require('react') | |
2 | + | |
3 | +const style = require('./index.css') | |
4 | + | |
5 | +class Landing extends React.Component { | |
6 | + render () { | |
7 | + return <div className={style.container}> | |
8 | + landing! | |
9 | + </div> | |
10 | + } | |
11 | +} | |
12 | + | |
13 | +module.exports = Landing |
app/containers/landing.js | ||
---|---|---|
@@ -1,12 +1,12 @@ | ||
1 | 1 | const React = require('react') |
2 | 2 | const { connect } = require('react-redux') |
3 | 3 | |
4 | +const Landing = require('app/components/landing') | |
5 | + | |
4 | 6 | class LandingContainer extends React.Component { |
5 | 7 | render () { |
6 | - return <div> | |
7 | - landing! | |
8 | - </div> | |
8 | + return <Landing /> | |
9 | 9 | } |
10 | 10 | } |
11 | 11 | |
12 | 12 | module.exports = connect( |
app/package.json | ||
---|---|---|
@@ -4,12 +4,12 @@ | ||
4 | 4 | "./config.js": "./config-browser.js" |
5 | 5 | }, |
6 | 6 | "browserify": { |
7 | 7 | "transform": [ |
8 | + ["cssify", { "modules": true }], | |
8 | 9 | "babelify", |
9 | 10 | "envify", |
10 | 11 | ["evalify", { "files": [ "config-browser.js" ] } ], |
11 | - "bulkify", | |
12 | - "sheetify/transform" | |
12 | + "bulkify" | |
13 | 13 | ] |
14 | 14 | } |
15 | 15 | } |
package.json | ||
---|---|---|
@@ -73,8 +73,10 @@ | ||
73 | 73 | "browserify": "^12.0.1", |
74 | 74 | "bulk-require": "^0.2.1", |
75 | 75 | "bulkify": "^1.1.1", |
76 | 76 | "cpx": "^1.2.1", |
77 | + "css-modules-require-hook": "^2.1.0", | |
78 | + "cssify": "^1.0.2", | |
77 | 79 | "envify": "^3.4.0", |
78 | 80 | "evalify": "^1.0.1", |
79 | 81 | "feathers": "^1.2.0", |
80 | 82 | "history": "^1.13.1", |
@@ -88,8 +90,7 @@ | ||
88 | 90 | "react-router": "^1.0.0", |
89 | 91 | "redux": "^3.0.4", |
90 | 92 | "redux-simple-router": "0.0.10", |
91 | 93 | "redux-thunk": "^1.0.0", |
92 | - "sheetify": "github:ahdinosaur/sheetify#realpath", | |
93 | 94 | "uglifyify": "^3.0.1" |
94 | 95 | } |
95 | 96 | } |
Built with git-ssb-web