用途说明
I18nPlugin (本地化插件)
Create bundles with translations baked in. Then you can serve the translated bundle to your clients.
webpack.config.js配置
|
|
案例
|
山峰永不相遇,而人人却处处相逢。
I18nPlugin (本地化插件)
Create bundles with translations baked in. Then you can serve the translated bundle to your clients.
|
|
|
ImageminPlugin ()
Compresses and optimizes your images using Imagemin. Unlike image-webpack-loader this will also optimize images from plugins like favicons-webpack-plugin.
|
|
()
Use a service worker to cache all your bundles’ emitted assets. This plugin will generate a service worker file using sw-precache then add it to your build directory. You can optionally pass your own sw-precache config options.
|
|
OfflinePlugin ()
Plugin which brings offline support into your project. It generates ServiceWorker based on output files and chosen update strategy. AppCache is used as a fallback when ServiceWorker is not available.
|
|