From 5deb1fb4369b0683378c32b2d7ef08b296150660 Mon Sep 17 00:00:00 2001 From: Alexander Fedyashov Date: Wed, 22 Mar 2017 16:27:04 +0200 Subject: [PATCH 1/4] docs(bundlers): add webpack 2 example --- docs/app/Views/Usage.js | 13 ++++++ examples/webpack1/public/index.html | 2 +- examples/webpack1/src/main.js | 2 +- examples/webpack2/.babelrc | 10 +++++ examples/webpack2/.gitignore | 1 + examples/webpack2/package.json | 27 ++++++++++++ examples/webpack2/public/index.html | 13 ++++++ examples/webpack2/src/main.js | 20 +++++++++ examples/webpack2/webpack.config.js | 65 +++++++++++++++++++++++++++++ 9 files changed, 151 insertions(+), 2 deletions(-) create mode 100644 examples/webpack2/.babelrc create mode 100644 examples/webpack2/.gitignore create mode 100644 examples/webpack2/package.json create mode 100644 examples/webpack2/public/index.html create mode 100644 examples/webpack2/src/main.js create mode 100644 examples/webpack2/webpack.config.js diff --git a/docs/app/Views/Usage.js b/docs/app/Views/Usage.js index b7dc6bc343..816ea4f9e3 100644 --- a/docs/app/Views/Usage.js +++ b/docs/app/Views/Usage.js @@ -164,6 +164,19 @@ const Usage = () => ( icon='github' labelPosition='left' /> + +
Webpack 2
+

+ Webpack 2 fully supports Semantic UI React, it also supports tree shaking. Please ensure that you build your app + in production mode before release, it will strip propTypes from your build. +

+ +