Skip to content

Commit 51e6241

Browse files
committed
FIXME: Temporary workaround for broken webpack string parsing
This problem should go away after a new release of css-loader gets cut that includes css-selector-tokenizer >= 0.6.0 See webpack-contrib/css-loader#307
1 parent 5f0533e commit 51e6241

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"babel-loader": "6.2.4",
88
"babel-preset-es2015": "6.13.2",
99
"babel-preset-react": "6.11.1",
10-
"css-loader": "0.23.1",
10+
"css-loader": "git+ssh://[email protected]/webpack/css-loader.git",
1111
"eslint": "3.2.2",
1212
"eslint-loader": "1.5.0",
1313
"eslint-plugin-jsx-a11y": "2.0.1",

src/css/shim.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.site-title > h1 > span:nth-child(1)::after,
2+
.site-title > h1 > span:nth-child(2)::after {
3+
content: '\A';
4+
white-space: pre-wrap;
5+
}

src/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import ReactDOM from 'react-dom';
33
import Widget from './Widget';
44

5+
import "../scss/main.scss";
56
window.console.log("Webpack works!");
67

78
ReactDOM.render(

0 commit comments

Comments
 (0)