From 630d8e06d8404548b948e050b62b265fdd9a24f5 Mon Sep 17 00:00:00 2001 From: Alexander Fedyashov Date: Mon, 20 Mar 2017 01:17:42 +0200 Subject: [PATCH] docs(bundlers): add webpack 1 example (#1452) * docs(bundlers): add webpack 1 example * docs(bundlers): add webpack 1 example --- docs/app/Views/Usage.js | 33 ++++++++++++++++ examples/webpack1/.babelrc | 11 ++++++ examples/webpack1/.gitignore | 1 + examples/webpack1/package.json | 27 ++++++++++++++ examples/webpack1/public/index.html | 13 +++++++ examples/webpack1/src/main.js | 20 ++++++++++ examples/webpack1/webpack.config.js | 58 +++++++++++++++++++++++++++++ 7 files changed, 163 insertions(+) create mode 100644 examples/webpack1/.babelrc create mode 100644 examples/webpack1/.gitignore create mode 100644 examples/webpack1/package.json create mode 100644 examples/webpack1/public/index.html create mode 100644 examples/webpack1/src/main.js create mode 100644 examples/webpack1/webpack.config.js diff --git a/docs/app/Views/Usage.js b/docs/app/Views/Usage.js index 9a7e478836..062a1c9a8f 100644 --- a/docs/app/Views/Usage.js +++ b/docs/app/Views/Usage.js @@ -1,6 +1,7 @@ import React from 'react' import pkg from 'package.json' import { + Button, Container, Header, Segment, @@ -131,6 +132,38 @@ const Usage = () => ( + + +
Bundlers
+

+ Semantic UI React is fully supported by all modern JavaScript bundlers. We made some example recipes with some + of them. You can use them as start point for your projects. +

+ +
Webpack 1
+

+ Webpack 1 fully supports Semantic UI React, however we don't recommend to use it because it's deprecated. + Please ensure that you build your app in production mode before release, it will strip propTypes + from your build. +

+

+ Because Webpack 1 doesn't support tree shaking we recommend to use babel-plugin-lodash in your + builds. You can find example configuration in examples directory of Semantic UI React. +

+ +