From 646e58b4347371d8cedfc8bfb112b5483200b6d6 Mon Sep 17 00:00:00 2001 From: Dmitry Baranovskiy Date: Tue, 31 Jan 2017 10:12:04 +1100 Subject: [PATCH] Updated README --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8040710..d00a101 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,17 @@ A JavaScript SVG library for the modern web. Learn more at [snapsvg.io](http://s ### Use -In your HTML file, load simply by: `` +In your HTML file, load simply by: +```html +` +``` No other scripts are needed. Both the minified and uncompressed (for development) versions are in the `/dist` folder. +To load with webpack use following command: +```js +const Snap = require(`imports-loader?this=>window,fix=>module.exports=0!snapsvg/dist/snap.svg.js`); +``` + ### Build Snap.svg uses [Grunt](http://gruntjs.com/) to build. @@ -63,6 +71,6 @@ _*Snap.svg uses Grunt 0.4.0. You might want to [read](http://gruntjs.com/getting git push origin my_branch -* Make a [pull request](https://help.github.com/articles/using-pull-requests) to `dev` branch. +* Make a [pull request](https://help.github.com/articles/using-pull-requests) to `dev`(!) branch. *Note:* Pull requests to other branches than `dev` or without filled CLA wouldn’t be accepted.