@parabol/webpack-autodll-plugin

1.3.0 • Public • Published

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

@parabol/webpack-autodll-plugin

AutoDLL Webpack Plugin for handling DLL caching outside of webpack.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

AutoDLL Webpack Plugin for handling DLL caching outside of webpack.

You can use this Webpack plugin that includes DLL caching, to make your webpack builds as fast as HIGHLY optimized, and automatically based on your lockfile, e.g. yarn.lock

Product Name Screen Shot

(back to top)

Built With

(back to top)

Getting Started

Prerequisites

  • Node.js
  • NPM
npm install npm@latest -g

Webpack Usage

const path = require('path')
const WebpackAutodllPlugin = require('@parabol/webpack-autodll-plugin')

module.exports = {
  entry: './src/index.js',
  plugins: [
    new WebpackAutodllPlugin({
      vendors: ['react', 'react-dom', 'core-js'],
    }),
  ],
}

For more examples, please refer to the Documentation

(back to top)

Roadmap

  • [x] the buildDll.js logic is moved into a separate package & turned into a webpack plugin
  • [x] the package is open sourced under the parabolinc github and under the parabol in npm
  • [x] instead of referencing the built dll output, the dev config references the dll config & the plugin builds it if the hash changes
  • [x] see https://github.com/clinyong/dll-link-webpack-plugin for inspiration on the API
  • [ ] Suggested API: ({vendors: string[]} | {package: string, ignore?: string[]}) & {lockfile?: string} but it's up to you!

See the open issues for a full list of proposed features (and known issues).

(back to top)

Getting Start

1.Clone the repo

git clone https://github.com/JimmyLv/webpack-autodll-plugin.git
  1. Install NPM packages
yarn #or npm install
  1. Try the webpack plugin in examples/simple folder
cd examples/simple
webpack
  1. Or you can try to use jest to runWebpackExampleInMemory
yarn test

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

JimmyLv - @Jimmy_JingLv - jimmy.jinglv@gmail.com

Project Link: https://github.com/JimmyLv/webpack-autodll-plugin

(back to top)

Acknowledgments

(back to top)

Package Sidebar

Install

npm i @parabol/webpack-autodll-plugin

Weekly Downloads

1

Version

1.3.0

License

MIT

Unpacked Size

3.58 MB

Total Files

12

Last publish

Collaborators

  • jimmylv