Skip to content

Commit

Permalink
import Draft css from js-land
Browse files Browse the repository at this point in the history
  • Loading branch information
sstur committed Mar 15, 2016
1 parent c7c64ca commit 2cc1add
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"expect": "^1.14.0",
"flow-bin": "0.20.1",
"mocha": "^2.4.5",
"raw-loader": "^0.5.1",
"react-addons-test-utils": "^0.14.7",
"rimraf": "^2.5.2",
"style-loader": "^0.13.0",
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions src/RichTextEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import autobind from 'class-autobind';
import {EventEmitter} from 'events';
import {BLOCK_TYPE} from 'draft-js-tools';

// $FlowIssue - Flow doesn't understand CSS Modules
import './Draft.global.css';
// $FlowIssue - Flow doesn't understand CSS Modules
import styles from './RichTextEditor.css';

Expand Down
7 changes: 3 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ module.exports = {
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
},
{test: /\.js$/, loader: 'babel'},
{
test: /\.css$/,
exclude: /\.global\.css$/,
loaders: [
'style?sourceMap',
'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]',
],
},
{test: /\.global\.css$/, loader: 'style!raw'},
],
},
};

0 comments on commit 2cc1add

Please sign in to comment.