There are some plugins can be used now.
plugin | desciption | options | remark |
---|---|---|---|
es | process js and jsx file with babel | _ | _ |
eslint | using eslint to check code style | _ | _ |
css | handle css file | _ | no css modules for *.global.css; others will be treated as css modules |
assets | handle assets file, like json, md, txt,image, and others | _ | _ |
development | using in development environment | _ | _ |
production | create a production bundle and a temporary sever to let you preview your app. | _ | _ |
dll | build a dll.js file. accelerate development compile speed | _ | _ |
html | generate html | HMMLPluginOptions | _ |
static | serve static folder; folder name is 'static', can be accessed with /static url | _ | _ |
proxy | create http proxy to backend api | HTTPProxyMiddleOptions | _ |
optimize | optimize bundle in production | _ | _ |
commonchunk | generate commonchunk | _ | default common chunk will bundle all module in node_modules folder which are really used in your app; generate two chunks: vendor and manifest |
react-hmr | using for react-hmr | _ | _ |
less | using for less file | _ | no css modules for *.global.less; others will be treated as css modules |