-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move basic bundle plugin to core (#722)
- Loading branch information
Noemi Rozpara
authored
Apr 21, 2020
1 parent
4b06ef1
commit d7319a2
Showing
16 changed files
with
25 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,3 @@ | ||
# @haul-bundler/basic-bundle-webpack-plugin | ||
|
||
[![Version][version]][package] | ||
|
||
[![PRs Welcome][prs-welcome-badge]][prs-welcome] | ||
[![MIT License][license-badge]][license] | ||
[![Chat][chat-badge]][chat] | ||
[![Code of Conduct][coc-badge]][coc] | ||
|
||
Basic bundle plugin for Haul and Webpack. This module is intended for internal use. | ||
|
||
Basic bundle is a regular plain JavaScript bundle, where all modules are stored in a single file. | ||
|
||
__When using `@haul-bundler/cli bundle` command, this plugin will be added and configured automatically__, based on passed options. | ||
|
||
You can read more about Haul here: https://github.com/callstack/haul. | ||
|
||
## API | ||
|
||
```ts | ||
import BasicBundleWebpackPlugin from '@haul-bundler/basic-bundle-webpack-plugin'; | ||
|
||
new BasicBundleWebpackPlugin({ | ||
bundle: true, // set true when generating static bundle and false when serving from packager server | ||
sourceMap: true, // whether to generate source maps | ||
preloadBundles: [] // bundle names to preload | ||
}); | ||
``` | ||
|
||
<!-- badges (common) --> | ||
|
||
[license-badge]: https://img.shields.io/npm/l/@haul-bundler/basic-bundle-webpack-plugin.svg?style=flat-square | ||
[license]: https://opensource.org/licenses/MIT | ||
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square | ||
[prs-welcome]: http://makeapullrequest.com | ||
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square | ||
[coc]: https://github.com/callstack/haul/blob/master/CODE_OF_CONDUCT.md | ||
[chat-badge]: https://img.shields.io/badge/chat-discord-brightgreen.svg?style=flat-square&colorB=7289DA&logo=discord | ||
[chat]: https://discord.gg/zwR2Cdh | ||
|
||
[version]: https://img.shields.io/npm/v/@haul-bundler/basic-bundle-webpack-plugin.svg?style=flat-square | ||
[package]: https://www.npmjs.com/package/@haul-bundler/basic-bundle-webpack-plugin | ||
`BasicBundleWebpackPlugin` was moved into `@haul-bundler/core` package. This module exists only for backwards compatibility and should not be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@haul-bundler/core/dist/webpack/plugins/BasicBundleWebpackPlugin'); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters