unused-files-webpack-plugin
Advanced tools
Changelog
2.0.0 (2016-01-22)
Before:
// webpack.config.js
var UnusedFilesWebpackPlugin = require("unused-files-webpack-plugin");
After:
In ES2015 module format:
import UnusedFilesWebpackPlugin from "unused-files-webpack-plugin";
// it's the same as
import { default as UnusedFilesWebpackPlugin } from "unused-files-webpack-plugin";
// You could access from named export as well.
import { UnusedFilesWebpackPlugin } from "unused-files-webpack-plugin";
If you still use commonjs:
var UnusedFilesWebpackPlugin = require("unused-files-webpack-plugin").default;
// or named export
var UnusedFilesWebpackPlugin = require("unused-files-webpack-plugin").UnusedFilesWebpackPlugin;
// with destructive assignment
var { UnusedFilesWebpackPlugin } = require("unused-files-webpack-plugin");
<a name"1.3.0"></a>