Skip to content

Commit

Permalink
add url-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhangyu committed Oct 10, 2017
1 parent db51cf7 commit 3ee139f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
5 changes: 2 additions & 3 deletions demo/Demo2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from 'react';
import Print from '../src';
import IUImg from './IU00.jpg';

export default class Demo2 extends Component {
render() {
Expand All @@ -25,9 +26,7 @@ export default class Demo2 extends Component {
otherStyle={otherStyle}
>
<div>
<img src="https://camo.githubusercontent.com/fce224679f9178f0677b752fe3e54892ad0d7e12/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f68616e7a68616e6779752f72632d7072696e742f62616467652e7376673f6272616e63683d6d6173746572" alt="imgTest" />
<img src="https://camo.githubusercontent.com/c32e739600277c1fbd63a5920bf5b4049ee76da4/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f72632d7072696e742e7376673f7374796c653d666c6174" alt="imgTest" />
<img src="https://camo.githubusercontent.com/1b1c928991e90341a964a62667fe72ced61c7619/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6e726d2e7376673f7374796c653d666c61742d737175617265" alt="imgTest" />
<img src={IUImg} alt="imgTest" />
<p className="red">first line, we don`t have color</p>
<p className="green">second line, I have bigger font-size in the print`s
review page because of media query</p>
Expand Down
3 changes: 2 additions & 1 deletion demo/Demo3.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import Print from '../src';
import IUImg from './IU01.jpg';

export default function Demo3() {
let printDom = null;
Expand All @@ -18,7 +19,7 @@ export default function Demo3() {
title="this is Demo3`s title"
>
<div>
<img src="https://www.travis-ci.org/hanzhangyu/rc-print.svg?branch=master" alt="imgTest" />
<img src={IUImg} alt="imgTest" />
<p className="red">first page, you can only see us in the print`s page</p>
<p className="green">second page, you can only see us in the print`s page</p>
<p className="pink">third page, you can only see us in the print`s page</p>
Expand Down
Binary file added demo/IU00.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/IU01.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 25 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"react-test-renderer": "^15.5.4",
"rimraf": "^2.5.4",
"style-loader": "~0.12.3",
"url-loader": "^0.5.7",
"webpack": "^1.12.9",
"webpack-dev-server": "1.12.1"
},
Expand Down

0 comments on commit 3ee139f

Please sign in to comment.