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:
parent
f2040233d0
commit
3801044178
18 changed files with 40032 additions and 486 deletions
19928
webpack-test/dist/build.js
vendored
Normal file
19928
webpack-test/dist/build.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
12
webpack-test/index.html
Normal file
12
webpack-test/index.html
Normal 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 Webpack Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test-node"></div>
|
||||
<script src="dist/build.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
12
webpack-test/src/app.js
Normal file
12
webpack-test/src/app.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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'));
|
||||
Reference in a new issue