Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(examples): remove outdated Webpack examples #3729

Merged
merged 1 commit into from
Aug 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
coverage/*
dist/*
docs/dist/*
examples/webpack3/scripts/*
tmp/*
82 changes: 0 additions & 82 deletions docs/src/pages/Usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,88 +121,6 @@ example recipes with some of them. You can use these as a starting point for you
</Tab.Pane>
),
},
{
menuItem: 'Webpack 2/3',
render: () => (
<Tab.Pane style={{ fontSize: 'inherit' }}>
<p>
Semantic UI React is fully supported by Webpack 2 and 3, including tree shaking as of{' '}
<code>[email protected]</code>.
</p>
<p>
Please ensure that you build your app in production mode before release. Semantic UI
React includes several optimizations in production mode, such as stripping `propTypes`
from your build.
</p>
<Header as='h4'>Examples</Header>
<List>
<List.Item
icon='github'
content='Webpack 3 Example Project'
href='https://github.com/Semantic-Org/Semantic-UI-React/tree/master/examples/webpack3'
rel='noopener noreferrer'
target='_blank'
/>
<List.Item
icon='github'
content='Webpack 3 Example .babelrc'
href='https://github.com/Semantic-Org/Semantic-UI-React/tree/master/examples/webpack3/.babelrc'
rel='noopener noreferrer'
target='_blank'
/>
<List.Item
icon='github'
content='babel-plugin-lodash'
href='https://github.com/lodash/babel-plugin-lodash'
rel='noopener noreferrer'
target='_blank'
/>
</List>
<Divider horizontal section>
Known Issues
</Divider>
<p>
Webpack 2/3 tree shaking does not completely remove unused exports, there are numerous
issues that are long-standing bugs:
</p>
<List>
<List.Item
icon='github'
href='https://github.com/webpack/webpack/issues/1750'
rel='noopener noreferrer'
target='_blank'
content='webpack/webpack#1750'
/>
<List.Item
icon='github'
href='https://github.com/webpack/webpack/issues/2867'
rel='noopener noreferrer'
target='_blank'
content='webpack/webpack#2867'
/>
<List.Item
icon='github'
href='https://github.com/webpack/webpack/issues/2899'
rel='noopener noreferrer'
target='_blank'
content='webpack/webpack#2899'
/>
<List.Item
icon='github'
href='https://github.com/webpack/webpack/issues/3092'
rel='noopener noreferrer'
target='_blank'
content='webpack/webpack#3092'
/>
</List>
<p>
Semantic UI React imports will be not optimized, so we recommend to use
<code>babel-plugin-lodash</code> in your builds. You can find example configuration in
<code>examples/webpack3</code> directory.
</p>
</Tab.Pane>
),
},
]}
/>

Expand Down
5 changes: 0 additions & 5 deletions examples/.eslintrc

This file was deleted.

10 changes: 0 additions & 10 deletions examples/webpack1/.babelrc

This file was deleted.

2 changes: 0 additions & 2 deletions examples/webpack1/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions examples/webpack1/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions examples/webpack1/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions examples/webpack1/public/index.html

This file was deleted.

20 changes: 0 additions & 20 deletions examples/webpack1/src/main.js

This file was deleted.

62 changes: 0 additions & 62 deletions examples/webpack1/webpack.config.js

This file was deleted.

10 changes: 0 additions & 10 deletions examples/webpack2/.babelrc

This file was deleted.

2 changes: 0 additions & 2 deletions examples/webpack2/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions examples/webpack2/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions examples/webpack2/package.json

This file was deleted.

13 changes: 0 additions & 13 deletions examples/webpack2/public/index.html

This file was deleted.

20 changes: 0 additions & 20 deletions examples/webpack2/src/main.js

This file was deleted.

Loading