Skip to content

Commit

Permalink
No parse for example js
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchin committed Sep 29, 2015
1 parent c2dbfc2 commit 84f03dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ A CodePen demo is available [here](http://codepen.io/davidchin/full/GpNvqw/).
1. Install `react-input-range` using npm. `npm install react-input-range`
2. Import `react-input-range.css` to apply the default styling.
3. Import `react-input-range.js` to use `InputRange` component.
4. Depending on your browser support requirement, `babel-core/polyfill` or `core-js/es6` polyfill might be needed.

## Usage
If accepting a range of values:
Expand Down
2 changes: 2 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<div id="input-range"></div>
</form>

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.25/browser-polyfill.js"></script>
<script src="./build/example.js"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions tasks/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ config.script = {
entries: [
config.example.src + '/example.js',
],
noParse: [
require.resolve(path.join(process.cwd(), config.build, config.name)),
],
output: 'example.js',
dest: config.example.build,
debug: true,
Expand Down

0 comments on commit 84f03dd

Please sign in to comment.