remove unused files

This commit is contained in:
Thomas Grainger 2016-11-30 00:25:22 +00:00
parent 661b420103
commit 1a7a61d766
No known key found for this signature in database
GPG key ID: 995EA0A029283160
91 changed files with 13 additions and 47265 deletions

View file

@ -3,6 +3,7 @@ import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import UnusedFilesWebpackPlugin from 'unused-files-webpack-plugin2';
const imageLoader = 'file-loader?name=img/[name]-[sha512:hash:base64:7].[ext]';
const fontLoader = 'file-loader?name=fnt/[name]-[sha512:hash:base64:7].[ext]';
@ -138,6 +139,10 @@ export default {
}),
new webpack.DefinePlugin({
COMPILE_TIME: JSON.stringify(new Date()),
})
}),
new UnusedFilesWebpackPlugin({
failOnUnused: true,
pattern: 'src/**/*.*',
}),
],
};