Add experimental Webpack support. Works fine when no cache is involved, but I need to figure out a better story for cache integration as most builds that teams use likely include a cache enabled.

This commit is contained in:
Ryan McGrath 2016-03-21 19:39:16 +09:00
parent f2040233d0
commit 3801044178
18 changed files with 40032 additions and 486 deletions

19351
browserify-test/dist/build.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>react-iconpack Browserify Test</title>
</head>
<body>
<div id="test-node"></div>
<script src="dist/build.js" type="text/javascript"></script>
</body>
</html>

View file

@ -0,0 +1,13 @@
import React from 'react';
import {render} from 'react-dom';
import Icon from 'react-iconpack';
class TestComponent extends React.Component {
render() {
return <Icon uri="polymer/notification/disc_full" width="48" height="48"/>;
}
};
render(<TestComponent />, document.getElementById('test-node'));